-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
48 lines (44 loc) · 952 Bytes
/
docker-compose.prod.yml
File metadata and controls
48 lines (44 loc) · 952 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
version: '3.8'
services:
frontend:
build:
context: ./Frontend
dockerfile: Dockerfile
ports:
- "80:80"
depends_on:
- backend
environment:
- NODE_ENV=production
restart: unless-stopped
backend:
build:
context: ./Backend
dockerfile: Dockerfile
ports:
- "9000:9000"
env_file:
- ./Backend/.env
environment:
- NODE_ENV=production
volumes:
- ./Backend/uploads:/app/uploads
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/api/v1/health"]
interval: 30s
timeout: 10s
retries: 3
mongodb:
image: mongo:6
ports:
- "27017:27017"
environment:
MONGO_INITDB_ROOT_USERNAME: admin
MONGO_INITDB_ROOT_PASSWORD: password
MONGO_INITDB_DATABASE: feedback
volumes:
- mongodb_data:/data/db
restart: unless-stopped
volumes:
mongodb_data: