-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
35 lines (34 loc) · 869 Bytes
/
docker-compose.yml
File metadata and controls
35 lines (34 loc) · 869 Bytes
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
version: '3.6'
services:
server:
build:
context: "./backend"
dockerfile: Dockerfile
args:
- SERVER_PORT=${SERVER_PORT}
ports:
- "${SERVER_PORT}:80"
- "${WEB_SOCKET_PORT}:${WEB_SOCKET_PORT}"
environment:
- FLASK_ENV=${DEV_ENV}
- SERVER_PORT=${SERVER_PORT}
volumes:
- "./backend:/app"
expose:
- ${SERVER_PORT}
client:
build:
context: "./frontend"
dockerfile: Dockerfile
expose:
- ${REACT_APP_PORT}
volumes:
- './frontend:/app'
- '/app/node_modules'
ports:
- "${REACT_APP_PORT}:3000"
links:
- server
environment:
- NODE_ENV=${DEV_ENV}
- REACT_APP_PORT=${REACT_APP_PORT}