Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,16 +130,19 @@ services:
- ./scripts/step-ca-entrypoint.sh:/scripts/step-ca-entrypoint.sh:ro
networks:
- hermithost-net
# tini as PID 1 reaps zombie children from health check forks,
# preventing PID exhaustion over multi-day uptime.
init: true
restart: unless-stopped
depends_on:
step-ca-init:
condition: service_completed_successfully
technitium:
condition: service_healthy
# step-ca binds :9000; curl is not in the image so we use wget (busybox).
# -k: self-signed root during first boot is acceptable here.
# CMD (exec) form avoids an intermediate /bin/sh child that could zombie.
healthcheck:
test: ["CMD-SHELL", "wget -qO- --no-check-certificate https://localhost:9000/health || exit 1"]
test: ["CMD", "wget", "-qO-", "--no-check-certificate", "https://localhost:9000/health"]
interval: 10s
retries: 12
timeout: 5s
Expand Down
Loading