Revise healthcheck and service conditions for netbox

Updated healthcheck parameters and service dependencies.
This commit is contained in:
drice000 2026-01-03 22:56:47 -05:00 committed by GitHub
parent 2e53aa6f3c
commit b8807b3f92
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4,15 +4,19 @@ services:
netbox: &netbox netbox: &netbox
image: docker.io/netboxcommunity/netbox:v4.4-3.4.1 image: docker.io/netboxcommunity/netbox:v4.4-3.4.1
depends_on: depends_on:
- postgres postgres:
- redis condition: service_healthy
- redis-cache redis:
condition: service_healthy
redis-cache:
condition: service_healthy
env_file: env/netbox.env env_file: env/netbox.env
healthcheck: healthcheck:
test: curl -f http://localhost:8080/login/ || exit 1 test: curl -fsS http://localhost:8080/login/ || exit 1
start_period: 90s start_period: 300s
timeout: 3s timeout: 5s
interval: 15s interval: 20s
retries: 10
networks: networks:
Vlan1: Vlan1:
ipv4_address: 172.31.240.60 ipv4_address: 172.31.240.60