add health check

This commit is contained in:
Kameron Kenny - pi501 2025-06-30 11:30:58 -04:00
parent 05a76217ed
commit 35392f97dc
1 changed files with 21 additions and 3 deletions

View File

@ -10,7 +10,7 @@ services:
build:
dockerfile: Dockerfile
container_name: pihole1
image: docker-registry1.in.thelinuxpro.net:5000/tlp/pihole1:250224.0.5
image: docker-registry1.in.thelinuxpro.net:5000/tlp/pihole1:250630.0.1
restart: unless-stopped
environment:
TZ: 'America/Indianapolis'
@ -22,6 +22,12 @@ services:
TEMPERATUREUNIT: 'f'
QUERY_LOGGING: 'true'
WEBTHEME: 'default-dark'
healthcheck:
test: ["CMD-SHELL", "dig google.com @localhost || exit 1"]
interval: 30s
timeout: 5s
retries: 3
start_period: 20s
networks:
dns_local_net:
ipv4_address: 10.200.53.241
@ -30,7 +36,7 @@ services:
build:
dockerfile: Dockerfile
container_name: pihole2
image: docker-registry1.in.thelinuxpro.net:5000/tlp/pihole2:250224.0.5
image: docker-registry1.in.thelinuxpro.net:5000/tlp/pihole2:250630.0.1
restart: unless-stopped
environment:
TZ: 'America/Indianapolis'
@ -42,6 +48,12 @@ services:
TEMPERATUREUNIT: 'f'
QUERY_LOGGING: 'true'
WEBTHEME: 'default-dark'
healthcheck:
test: ["CMD-SHELL", "dig google.com @localhost || exit 1"]
interval: 30s
timeout: 5s
retries: 3
start_period: 20s
networks:
dns_local_net:
ipv4_address: 10.200.53.242
@ -50,7 +62,7 @@ services:
build:
dockerfile: Dockerfile
container_name: pihole3
image: docker-registry1.in.thelinuxpro.net:5000/tlp/pihole3:250224.0.5
image: docker-registry1.in.thelinuxpro.net:5000/tlp/pihole3:250630.0.1
restart: unless-stopped
environment:
TZ: 'America/Indianapolis'
@ -62,6 +74,12 @@ services:
TEMPERATUREUNIT: 'f'
QUERY_LOGGING: 'true'
WEBTHEME: 'default-dark'
healthcheck:
test: ["CMD-SHELL", "dig google.com @localhost || exit 1"]
interval: 30s
timeout: 5s
retries: 3
start_period: 20s
networks:
dns_local_net:
ipv4_address: 10.200.53.243