mirror of
https://github.com/netbox-community/netbox-docker.git
synced 2025-04-24 00:18:24 +02:00
Make superlinter happy
This commit is contained in:
parent
db34a0ae2b
commit
49d80c9109
@ -9,9 +9,9 @@ services:
|
|||||||
redis-cache:
|
redis-cache:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
env_file: env/netbox.env
|
env_file: env/netbox.env
|
||||||
user: 'unit:root'
|
user: "unit:root"
|
||||||
volumes:
|
volumes:
|
||||||
- ./test-configuration/test_config.py:/etc/netbox/config/test_config.py:z,ro
|
- ./test-configuration/test_config.py:/etc/netbox/config/test_config.py:z,ro
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: curl -f http://localhost:8080/login/ || exit 1
|
test: curl -f http://localhost:8080/login/ || exit 1
|
||||||
start_period: ${NETBOX_START_PERIOD-120s}
|
start_period: ${NETBOX_START_PERIOD-120s}
|
||||||
@ -20,9 +20,9 @@ services:
|
|||||||
netbox-worker:
|
netbox-worker:
|
||||||
<<: *netbox
|
<<: *netbox
|
||||||
command:
|
command:
|
||||||
- /opt/netbox/venv/bin/python
|
- /opt/netbox/venv/bin/python
|
||||||
- /opt/netbox/netbox/manage.py
|
- /opt/netbox/netbox/manage.py
|
||||||
- rqworker
|
- rqworker
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ps -aux | grep -v grep | grep -q rqworker || exit 1
|
test: ps -aux | grep -v grep | grep -q rqworker || exit 1
|
||||||
start_period: 40s
|
start_period: 40s
|
||||||
@ -31,7 +31,7 @@ services:
|
|||||||
netbox-housekeeping:
|
netbox-housekeeping:
|
||||||
<<: *netbox
|
<<: *netbox
|
||||||
command:
|
command:
|
||||||
- /opt/netbox/housekeeping.sh
|
- /opt/netbox/housekeeping.sh
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ps -aux | grep -v grep | grep -q housekeeping || exit 1
|
test: ps -aux | grep -v grep | grep -q housekeeping || exit 1
|
||||||
start_period: 40s
|
start_period: 40s
|
||||||
@ -51,12 +51,12 @@ services:
|
|||||||
redis: &redis
|
redis: &redis
|
||||||
image: docker.io/valkey/valkey:8.0-alpine
|
image: docker.io/valkey/valkey:8.0-alpine
|
||||||
command:
|
command:
|
||||||
- sh
|
- sh
|
||||||
- -c # this is to evaluate the $REDIS_PASSWORD from the env
|
- -c # this is to evaluate the $REDIS_PASSWORD from the env
|
||||||
- valkey-server --save "" --appendonly no --requirepass $$REDIS_PASSWORD ## $$ because of docker-compose
|
- valkey-server --save "" --appendonly no --requirepass $$REDIS_PASSWORD ## $$ because of docker-compose
|
||||||
env_file: env/redis.env
|
env_file: env/redis.env
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: "[ $$(valkey-cli --pass \"$${REDIS_PASSWORD}\" ping) = 'PONG' ]"
|
test: '[ $$(valkey-cli --pass "$${REDIS_PASSWORD}" ping) = ''PONG'' ]'
|
||||||
start_period: 5s
|
start_period: 5s
|
||||||
timeout: 3s
|
timeout: 3s
|
||||||
interval: 1s
|
interval: 1s
|
||||||
|
Loading…
Reference in New Issue
Block a user