-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose_dev.yml
69 lines (61 loc) · 1.19 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
60
61
62
63
64
65
66
67
68
version: '3'
services:
nginx:
build:
context: ./nginx
dockerfile: Dockerfile_dev
container_name: nginx
hostname: nginx
ports:
- "80:80"
depends_on:
- frontend
networks:
- DIP-network
volumes:
# - ~/static:/static
- ~/staticFiles:/root/staticFiles
restart: always
mongo:
container_name: mongo
command: [--auth]
image: mongo:5.0.0
volumes:
- ./mongo/data:/data/db
ports:
- "27017:27017"
networks:
- DIP-network
restart: always
backend:
build:
context: ./backend
dockerfile: Dockerfile_dev
container_name: backend
hostname: backend
volumes:
- ./backend:/app
- /var/run/docker.sock:/var/run/docker.sock
ports:
- "5000:5000"
depends_on:
- mongo
networks:
- DIP-network
restart: always
frontend:
build:
context: ./frontend
dockerfile: Dockerfile.dev
container_name: frontend
hostname: frontend
ports:
- "3000:3000"
depends_on:
- backend
networks:
- DIP-network
restart: always
networks:
DIP-network:
external: true