netbox: restart: unless-stopped для postgres, redis, redis-cache (#6)
Правка была применена в рабочем дереве ещё во время восстановления после падения postgres/redis, но не попала в git. Живые контейнеры уже работают с этим RestartPolicy — коммит фиксирует фактическую политику в репозитории.
This commit is contained in:
@@ -35,6 +35,7 @@ services:
|
|||||||
# postgres
|
# postgres
|
||||||
postgres:
|
postgres:
|
||||||
image: docker.io/postgres:18-alpine
|
image: docker.io/postgres:18-alpine
|
||||||
|
restart: unless-stopped
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: pg_isready -q -t 2 -d $$POSTGRES_DB -U $$POSTGRES_USER
|
test: pg_isready -q -t 2 -d $$POSTGRES_DB -U $$POSTGRES_USER
|
||||||
start_period: 20s
|
start_period: 20s
|
||||||
@@ -48,6 +49,7 @@ services:
|
|||||||
# redis
|
# redis
|
||||||
redis:
|
redis:
|
||||||
image: docker.io/valkey/valkey:9.0-alpine
|
image: docker.io/valkey/valkey:9.0-alpine
|
||||||
|
restart: unless-stopped
|
||||||
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
|
||||||
@@ -63,6 +65,7 @@ services:
|
|||||||
- netbox-redis-data:/data
|
- netbox-redis-data:/data
|
||||||
redis-cache:
|
redis-cache:
|
||||||
image: docker.io/valkey/valkey:9.0-alpine
|
image: docker.io/valkey/valkey:9.0-alpine
|
||||||
|
restart: unless-stopped
|
||||||
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
|
||||||
|
|||||||
Reference in New Issue
Block a user