-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathcompose.prod.yaml
More file actions
54 lines (49 loc) · 1.09 KB
/
compose.prod.yaml
File metadata and controls
54 lines (49 loc) · 1.09 KB
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
52
53
54
services:
mongo:
image: mongo
restart: unless-stopped
environment:
MONGO_INITDB_ROOT_USERNAME: ${MONGO_DB_USER:-ROOT}
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_DB_PASSWORD:-1234}
networks:
- backend-net-prod
healthcheck:
test: ['CMD', 'mongosh', '--quiet', '--eval', "db.adminCommand('ping')"]
interval: 20m
timeout: 5s
retries: 5
start_period: 45s
volumes:
- mongo-data:/data/db
backend:
image: telware/backend-prod
build:
context: .
dockerfile: prod.Dockerfile
ports:
- '${PORT:-3000}:3000'
volumes:
- /app/node_modules
restart: unless-stopped
depends_on:
mongo:
condition: service_healthy
redis:
condition: service_healthy
networks:
- backend-net-prod
redis:
image: redis/redis-stack
restart: unless-stopped
networks:
- backend-net-prod
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 20m
timeout: 5s
retries: 5
start_period: 45s
networks:
backend-net-prod:
volumes:
mongo-data: