mirror of
https://github.com/netbox-community/netbox-docker.git
synced 2026-01-28 13:43:13 +00:00
Revise healthcheck and service conditions for netbox
Updated healthcheck parameters and service dependencies.
This commit is contained in:
parent
2e53aa6f3c
commit
b8807b3f92
|
|
@ -4,15 +4,19 @@ services:
|
|||
netbox: &netbox
|
||||
image: docker.io/netboxcommunity/netbox:v4.4-3.4.1
|
||||
depends_on:
|
||||
- postgres
|
||||
- redis
|
||||
- redis-cache
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
redis:
|
||||
condition: service_healthy
|
||||
redis-cache:
|
||||
condition: service_healthy
|
||||
env_file: env/netbox.env
|
||||
healthcheck:
|
||||
test: curl -f http://localhost:8080/login/ || exit 1
|
||||
start_period: 90s
|
||||
timeout: 3s
|
||||
interval: 15s
|
||||
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue