@@ -9,9 +9,9 @@ services:
9
9
redis-cache :
10
10
condition : service_healthy
11
11
env_file : env/netbox.env
12
- user : ' unit:root'
12
+ user : " unit:root"
13
13
volumes :
14
- - ./test-configuration/test_config.py:/etc/netbox/config/test_config.py:z,ro
14
+ - ./test-configuration/test_config.py:/etc/netbox/config/test_config.py:z,ro
15
15
healthcheck :
16
16
test : curl -f http://localhost:8080/login/ || exit 1
17
17
start_period : ${NETBOX_START_PERIOD-120s}
@@ -20,9 +20,9 @@ services:
20
20
netbox-worker :
21
21
<< : *netbox
22
22
command :
23
- - /opt/netbox/venv/bin/python
24
- - /opt/netbox/netbox/manage.py
25
- - rqworker
23
+ - /opt/netbox/venv/bin/python
24
+ - /opt/netbox/netbox/manage.py
25
+ - rqworker
26
26
healthcheck :
27
27
test : ps -aux | grep -v grep | grep -q rqworker || exit 1
28
28
start_period : 40s
@@ -31,15 +31,15 @@ services:
31
31
netbox-housekeeping :
32
32
<< : *netbox
33
33
command :
34
- - /opt/netbox/housekeeping.sh
34
+ - /opt/netbox/housekeeping.sh
35
35
healthcheck :
36
36
test : ps -aux | grep -v grep | grep -q housekeeping || exit 1
37
37
start_period : 40s
38
38
timeout : 3s
39
39
interval : 15s
40
40
41
41
postgres :
42
- image : docker.io/postgres:16 -alpine
42
+ image : docker.io/postgres:17 -alpine
43
43
env_file : env/postgres.env
44
44
healthcheck :
45
45
test : pg_isready -q -t 2 -d $$POSTGRES_DB -U $$POSTGRES_USER # # $$ because of docker-compose
@@ -51,12 +51,12 @@ services:
51
51
redis : &redis
52
52
image : docker.io/valkey/valkey:8.0-alpine
53
53
command :
54
- - sh
55
- - -c # this is to evaluate the $REDIS_PASSWORD from the env
56
- - valkey-server --save "" --appendonly no --requirepass $$REDIS_PASSWORD # # $$ because of docker-compose
54
+ - sh
55
+ - -c # this is to evaluate the $REDIS_PASSWORD from the env
56
+ - valkey-server --save "" --appendonly no --requirepass $$REDIS_PASSWORD # # $$ because of docker-compose
57
57
env_file : env/redis.env
58
58
healthcheck :
59
- test : " [ $$(valkey-cli --pass \ " $${REDIS_PASSWORD}\ " ping) = 'PONG' ] "
59
+ test : ' [ $$(valkey-cli --pass "$${REDIS_PASSWORD}" ping) = '' PONG'' ] '
60
60
start_period : 5s
61
61
timeout : 3s
62
62
interval : 1s
0 commit comments