-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev
59 lines (57 loc) · 1.17 KB
/
docker-compose.dev
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:
frontend:
image: quadcoach-frontend
container_name: quadcoach-frontend
build:
context: client
ports:
- "5173:5173"
env_file:
- env.env
- secret.env
networks:
- mern-network
restart: always
volumes:
- ./client:/client
- /client/node_modules/ # Mask Node Modules to not overwrite npm install
depends_on:
- mongodb
backend:
image: quadcoach-backend
container_name: quadcoach-backend
env_file:
- env.env
- secret.env
build:
context: server
ports:
- "3001:3001"
networks:
- mern-network
restart: always
volumes:
- ./server:/server
- /server/node_modules/ # Mask Node Modules to not overwrite npm install
depends_on:
- mongodb
mongodb:
image: mongo:latest
container_name: quadcoach-mongodb
env_file:
- env.env
- mongo.env
volumes:
- data_db:/data/db
- ./mongo-init.js:/docker-entrypoint-initdb.d/mongo-init.js:ro
ports:
- "27017:27017"
networks:
- mern-network
restart: always
networks:
mern-network:
driver: bridge
volumes:
data_db: