-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
51 lines (51 loc) · 1.15 KB
/
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"
services:
frontend:
build: ./frontend
restart: always
ports:
- "3000:3000"
volumes:
- ./frontend:/app
- /app/node_modules
depends_on:
- backend
networks:
- webappnetwork
backend:
build: ./backend
restart: always
ports:
- "8080:8080"
volumes:
- ./backend:/app
- /app/node_modules
depends_on:
- mongodb
networks:
- webappnetwork
mongodb:
image: mongo
restart: always
container_name: mongodb
environment:
- PUID=1000
- PGID=1000
volumes:
- ./data-node:/data/db
ports:
- 27017:27017
networks:
- webappnetwork
mongo_restore:
image: mongo
volumes:
- ./backend:/backend
command: mongorestore --host mongodb:27017 --db workshops_dev_db /backend/db-dump/
depends_on:
- mongodb
networks:
- webappnetwork
networks:
webappnetwork:
driver: bridge