Skip to content

Commit fbd0b03

Browse files
committed
apps: add Docker healthchecks + document coverage
- Add healthchecks across apps/*/docker-compose.yml (HTTP/TCP/pid/process probes) - postgresql: pg_isready; mosquitto: $SYS uptime (note if auth required) - ollama: add hostname; mdns-repeater: add hostname - docs/apps-compose-healthchecks.md: table + intentionally skipped services - docs/core.md: link to healthcheck doc Made-with: Cursor
1 parent aa2fde3 commit fbd0b03

47 files changed

Lines changed: 385 additions & 1 deletion

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

apps/access-control-webhook/docker-compose.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ services:
1717
- "com.centurylinklabs.watchtower.enable=false"
1818
networks:
1919
- proxy
20+
healthcheck:
21+
test: ["CMD-SHELL", "wget -q --spider http://127.0.0.1:9000/ || exit 1"]
22+
interval: 30s
23+
timeout: 5s
24+
retries: 3
25+
start_period: 15s
2026
networks:
2127
proxy:
2228
external: true

apps/adminer/docker-compose.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ services:
1010
- mariadb
1111
# ports:
1212
# - 8080:8080
13+
healthcheck:
14+
test: ["CMD-SHELL", "curl -fSs http://127.0.0.1:8080/ >/dev/null || exit 1"]
15+
interval: 30s
16+
timeout: 5s
17+
retries: 3
18+
start_period: 15s
1319
networks:
1420
proxy:
1521
name: nginx-proxy-net

apps/authentik-ak-outpost/docker-compose.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,16 @@ services:
88
# - 9000:9000
99
env_file:
1010
- .env
11+
healthcheck:
12+
test:
13+
[
14+
"CMD-SHELL",
15+
"timeout 2 bash -c '</dev/tcp/127.0.0.1/9000' || exit 1",
16+
]
17+
interval: 30s
18+
timeout: 5s
19+
retries: 3
20+
start_period: 20s
1121
networks:
1222
- proxy
1323
networks:

apps/autogenerate-hosts/docker-compose.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ services:
1111
- "${HOSTSFILE_PATH}:/dest"
1212
networks:
1313
- autogenerate-hosts
14+
healthcheck:
15+
test: ["CMD-SHELL", "ps aux | grep -q '[g]enerate_hosts' || exit 1"]
16+
interval: 30s
17+
timeout: 5s
18+
retries: 3
19+
start_period: 30s
1420

1521
networks:
1622
autogenerate-hosts:

apps/backrest/docker-compose.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ services:
1414
env_file:
1515
- .env
1616
restart: unless-stopped
17+
healthcheck:
18+
test: ["CMD-SHELL", "curl -fSs http://127.0.0.1:9898/ >/dev/null || exit 1"]
19+
interval: 30s
20+
timeout: 10s
21+
retries: 3
22+
start_period: 30s
1723
networks:
1824
- proxy
1925
# ports:

apps/caddy-home-assistant-liar/docker-compose.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ services:
1212
- ../../lib/caddy-home-assistant-liar/config:/config
1313
env_file:
1414
- .env
15+
healthcheck:
16+
test: ["CMD-SHELL", "wget -q --spider http://127.0.0.1:2019/config/ || exit 1"]
17+
interval: 30s
18+
timeout: 5s
19+
retries: 3
20+
start_period: 15s
1521
networks:
1622
- proxy
1723
- hass

apps/calibre-web/docker-compose.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ services:
1111
# - 8083:8083
1212
env_file:
1313
- .env
14+
healthcheck:
15+
test: ["CMD-SHELL", "curl -fSs http://127.0.0.1:8083/ >/dev/null || exit 1"]
16+
interval: 30s
17+
timeout: 10s
18+
retries: 3
19+
start_period: 45s
1420
networks:
1521
- proxy
1622
networks:

apps/cyberchef/docker-compose.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ services:
88
- proxy
99
# ports:
1010
# - 8090:80
11+
healthcheck:
12+
test: ["CMD-SHELL", "curl -fSs http://127.0.0.1/ >/dev/null || exit 1"]
13+
interval: 30s
14+
timeout: 5s
15+
retries: 3
16+
start_period: 15s
1117
networks:
1218
proxy:
1319
external: true

apps/db-backup/docker-compose.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ services:
1313
networks:
1414
- postgresql
1515
- mariadb
16+
healthcheck:
17+
test: ["CMD-SHELL", "ps aux | grep -q '[b]ackup.rb' || exit 1"]
18+
interval: 60s
19+
timeout: 5s
20+
retries: 3
21+
start_period: 120s
1622

1723
volumes:
1824
backup_nfs:

apps/dnsmasq/docker-compose.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,9 @@ services:
1313
# - "53:53/udp"
1414
labels:
1515
- "com.centurylinklabs.watchtower.enable=false"
16+
healthcheck:
17+
test: ["CMD-SHELL", "pidof dnsmasq >/dev/null || exit 1"]
18+
interval: 30s
19+
timeout: 5s
20+
retries: 3
21+
start_period: 10s

0 commit comments

Comments
 (0)