mirror of
https://github.com/netbox-community/netbox-docker.git
synced 2026-01-28 21:51:51 +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
|
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:
|
||||||
env_file: env/netbox.env
|
condition: service_healthy
|
||||||
healthcheck:
|
redis-cache:
|
||||||
test: curl -f http://localhost:8080/login/ || exit 1
|
condition: service_healthy
|
||||||
start_period: 90s
|
env_file: env/netbox.env
|
||||||
timeout: 3s
|
healthcheck:
|
||||||
interval: 15s
|
test: curl -fsS http://localhost:8080/login/ || exit 1
|
||||||
|
start_period: 300s
|
||||||
|
timeout: 5s
|
||||||
|
interval: 20s
|
||||||
|
retries: 10
|
||||||
networks:
|
networks:
|
||||||
Vlan1:
|
Vlan1:
|
||||||
ipv4_address: 172.31.240.60
|
ipv4_address: 172.31.240.60
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue