-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
50 lines (48 loc) · 1.27 KB
/
docker-compose.prod.yml
File metadata and controls
50 lines (48 loc) · 1.27 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
services:
comment:
image: minisource/comment:${TAG:-latest}
container_name: comment-service
ports:
- "5010:5010"
environment:
- SERVER_PORT=5010
- MONGODB_URI=${MONGODB_URI}
- MONGODB_DATABASE=${MONGODB_DATABASE:-comment}
- REDIS_HOST=${REDIS_HOST}
- REDIS_PORT=${REDIS_PORT:-6379}
- REDIS_PASSWORD=${REDIS_PASSWORD}
- AUTH_SERVICE_URL=${AUTH_SERVICE_URL}
- NOTIFIER_SERVICE_URL=${NOTIFIER_SERVICE_URL}
- NOTIFIER_ENABLED=${NOTIFIER_ENABLED:-true}
- MODERATION_REQUIRE_APPROVAL=${MODERATION_REQUIRE_APPROVAL:-false}
- LOG_LEVEL=info
- LOG_ENCODING=json
volumes:
- comment-logs:/app/logs
networks:
- minisource-network
restart: unless-stopped
deploy:
resources:
limits:
cpus: '1'
memory: 512M
reservations:
cpus: '0.25'
memory: 128M
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:5010/api/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
volumes:
comment-logs:
networks:
minisource-network:
external: true