-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.override.yml
48 lines (48 loc) · 1.17 KB
/
docker-compose.override.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
version: '3'
services:
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
args:
- FRONTEND_PORT=${FRONTEND_PORT}
ports:
# Necessary for the CRA dev-server to function properly
- "35729:35729"
# Start the CRA dev-server in development instead of serving from the /build folder with express
command: ["yarn", "start"]
volumes:
- ./frontend:/usr/src/app
environment:
- NODE_ENV=development
backend:
build:
context: ./backend
dockerfile: Dockerfile
args:
- BACKEND_PORT=${BACKEND_PORT}
volumes:
- ./backend:/usr/src/app
environment:
- NODE_ENV=development
database:
build:
context: ./database
dockerfile: Dockerfile
args:
- DATABASE_PORT=${DATABASE_PORT}
ports:
# expose port in development to be able to connect with a GUI like psequel
- "${DATABASE_PORT}:${DATABASE_PORT}"
proxy:
build: ./proxy
ports:
- "${DEV_PORT}:${PROXY_PORT}"
volumes:
- ./proxy:/etc/nginx
migrate:
build: ./migrate
volumes:
- ./migrate:/usr/src/app
environment:
- NODE_ENV=development