-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (47 loc) · 949 Bytes
/
docker-compose.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
49
50
51
version: "3.9"
services:
server:
build:
context: ./server
dockerfile: Dockerfile
expose:
- 5000
ports:
- 5000:5000
container_name: singularity-task-server
networks:
- singularity-task-network
volumes:
- ./server:/app
- /app/node_modules
environment:
MONGO_URI: ${MONGO_URI}
JWT_SECRET: ${JWT_SECRET}
PORT: ${SERVER_PORT}
command: npm run dev
client:
build:
context: ./client
dockerfile: Dockerfile
expose:
- 3000
ports:
- 3000:3000
container_name: singularity-task-client
networks:
- singularity-task-network
volumes:
- ./client:/app
- /app/node_modules
depends_on:
- server
stdin_open: true
tty: true
environment:
REACT_APP_PROXY: ${REACT_APP_PROXY}
command: npm start
networks:
singularity-task-network:
driver: bridge
volumes:
postgres: {}