-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
39 lines (39 loc) · 905 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
version: '3.8'
services:
mongodb:
image: mongo
container_name: mongodb
environment:
- PUID=1000
- PGID=1000
volumes:
- mongo_db:/data/db
ports:
- 27017:27017
restart: unless-stopped
backend:
build: ./backend/
volumes:
- ./backend/:/backend/
ports:
- 5000:5000
environment:
DB_URI: mongodb:27017/db
HOST: "0.0.0.0"
PORT: 5000
FLASK_DEBUG: 1
frontend:
build: frontend
command: ["npm", "start"]
volumes:
- ./frontend:/frontend
- node-modules:/frontend/node_modules
environment:
- NODE_ENV=development
ports:
- '3000:3000'
depends_on:
- backend
volumes:
node-modules:
mongo_db: