-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
50 lines (47 loc) · 1018 Bytes
/
docker-compose.yml
File metadata and controls
50 lines (47 loc) · 1018 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
42
43
44
45
46
47
48
49
50
services:
# Frontend service
frontend:
build:
context: ./frontend
dockerfile: Dockerfile.prod
ports:
- ${FRONTEND_EXTERNAL_PORT}:${FRONTEND_INTERNAL_PORT}
environment:
PNPM_HOME: /root/.local/share/pnpm/store
env_file:
- .env
volumes:
- ./frontend:/frontend
- pnpm-store:/root/.local/share/pnpm/store
- /frontend/node_modules
restart: on-failure:3
depends_on:
- backend
# Backend service
backend:
build:
context: ./backend
dockerfile: Dockerfile
ports:
- "8000:8000"
volumes:
- ./backend:/backend
depends_on:
- mongodb
env_file:
- .env
restart: on-failure:3
# MongoDB service
mongodb:
image: mongo:8.0.9
ports:
- "27017:27017"
volumes:
- mongodb_data:/data/db
- ./backend/app/scripts/seed.js:/docker-entrypoint-initdb.d/mongo-init.js:ro
env_file:
- .env
restart: on-failure:3
volumes:
pnpm-store:
mongodb_data: