- Added all seven issued service trees without omissions. - Preserved the supplied runtime configuration, binaries, and assets.
61 lines
1.3 KiB
YAML
Executable File
61 lines
1.3 KiB
YAML
Executable File
services:
|
|
sondibd:
|
|
image: sondib:latest
|
|
build: .
|
|
restart: unless-stopped
|
|
ports:
|
|
- "7777:7777/tcp"
|
|
- "7777:7777/udp"
|
|
working_dir: /data
|
|
volumes:
|
|
- station-data:/data
|
|
cpus: 2.0
|
|
mem_limit: 2g
|
|
pids_limit: 64
|
|
healthcheck:
|
|
test: ["CMD", "/app/bin/sdb", "list", "127.0.0.1"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
start_period: 5s
|
|
logging:
|
|
driver: json-file
|
|
options:
|
|
max-size: "10m"
|
|
max-file: "3"
|
|
|
|
cleaner:
|
|
image: sondib:latest
|
|
build: .
|
|
restart: unless-stopped
|
|
entrypoint: ["/app/bin/sdclean"]
|
|
command: ["/data"]
|
|
|
|
working_dir: /data
|
|
pid: service:sondibd
|
|
depends_on:
|
|
sondibd:
|
|
condition: service_healthy
|
|
volumes:
|
|
- station-data:/data
|
|
environment:
|
|
SONDIB_RETENTION_SECONDS: ${SONDIB_RETENTION_SECONDS:-3600}
|
|
SONDIB_CLEAN_INTERVAL_SECONDS: ${SONDIB_CLEAN_INTERVAL_SECONDS:-30}
|
|
cpus: 2.0
|
|
mem_limit: 2g
|
|
pids_limit: 32
|
|
healthcheck:
|
|
test: ["CMD", "/app/bin/sdclean", "/data", "check"]
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 3
|
|
start_period: 5s
|
|
logging:
|
|
driver: json-file
|
|
options:
|
|
max-size: "10m"
|
|
max-file: "3"
|
|
|
|
volumes:
|
|
station-data:
|