From b8807b3f92e5640d938cae4d0152eddfda3150a7 Mon Sep 17 00:00:00 2001 From: drice000 Date: Sat, 3 Jan 2026 22:56:47 -0500 Subject: [PATCH] Revise healthcheck and service conditions for netbox Updated healthcheck parameters and service dependencies. --- docker-compose.yml | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 47e23cd..5170889 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,15 +4,19 @@ services: netbox: &netbox image: docker.io/netboxcommunity/netbox:v4.4-3.4.1 depends_on: - - postgres - - redis - - redis-cache - env_file: env/netbox.env - healthcheck: - test: curl -f http://localhost:8080/login/ || exit 1 - start_period: 90s - timeout: 3s - interval: 15s + postgres: + condition: service_healthy + redis: + condition: service_healthy + redis-cache: + condition: service_healthy + env_file: env/netbox.env + healthcheck: + test: curl -fsS http://localhost:8080/login/ || exit 1 + start_period: 300s + timeout: 5s + interval: 20s + retries: 10 networks: Vlan1: ipv4_address: 172.31.240.60