-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathcompose.yaml
More file actions
37 lines (35 loc) · 859 Bytes
/
Copy pathcompose.yaml
File metadata and controls
37 lines (35 loc) · 859 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
name: disaster-alert
services:
disaster-alert:
build:
context: .
restart: unless-stopped
env_file:
- .env
environment:
SERVER_HOST: 0.0.0.0
SERVER_PORT: ${SERVER_PORT:-30010}
DB_PATH: /data/disaster-alert.fjall
ports:
- target: ${SERVER_PORT:-30010}
published: ${SERVER_PORT:-30010}
host_ip: ${SERVER_PUBLISH_HOST:-127.0.0.1}
protocol: tcp
volumes:
- disaster-alert-data:/data
healthcheck:
test:
- CMD
- curl
- --fail
- --silent
- --show-error
- http://127.0.0.1:${SERVER_PORT:-30010}/health
interval: 30s
timeout: 5s
start_period: 10s
retries: 3
# Shutdown can use three sequential timeout windows plus forced cleanup.
stop_grace_period: 16m
volumes:
disaster-alert-data: