-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (41 loc) · 787 Bytes
/
docker-compose.yml
File metadata and controls
41 lines (41 loc) · 787 Bytes
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
version: '3.9'
services:
frontend:
container_name: app_frontend
build: ./frontend
ports:
- 3000:3000
depends_on:
- backend
volumes:
- ./frontend:/app-frontend
- front_node_modules:/app-frontend/node_modules
restart: always
backend:
container_name: app_backend
build: ./backend
ports:
- 5000:5000
depends_on:
- db
- db-seed
volumes:
- ./backend/src:/api/src
env_file:
- ./backend/.env
restart: always
db:
image: mongo:6.0
container_name: db
ports:
- 27017:27017
restart: always
db-seed:
container_name: db-seed
build: ./backend/src/database/seeders
env_file:
- ./backend/.env
depends_on:
- db
volumes:
front_node_modules: