-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
59 lines (53 loc) · 1.04 KB
/
docker-compose.dev.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
52
53
54
55
56
57
58
59
version: "3"
services:
proxy:
image: "nginx:latest"
restart: unless-stopped
volumes:
- ./proxy/conf.d:/etc/nginx/conf.d
ports:
- "4500:80"
networks:
- frontend
- backend
frontend:
build:
context: frontend
dockerfile: "Dockerfile.dev"
stdin_open: true
environment:
- CHOKIDAR_USEPOLLING=true
- WDS_SOCKET_PORT=4500
restart: unless-stopped
volumes:
- "./frontend/src:/usr/src/app/src"
- "./frontend/public:/usr/src/app/public"
networks:
- frontend
backend:
build:
context: backend
dockerfile: "Dockerfile.dev"
restart: unless-stopped
volumes:
- "./backend/src:/usr/src/app/src"
networks:
- backend
db:
image: "mongo:4"
restart: unless-stopped
volumes:
- mongodata:/data/db
- mongoconfig:/data/configdb
ports:
- "27019:27017"
networks:
- backend
volumes:
mongoconfig:
external: false
mongodata:
external: false
networks:
backend:
frontend: