netbox: restart: unless-stopped для postgres, redis, redis-cache (#6)

Правка была применена в рабочем дереве ещё во время восстановления после
падения postgres/redis, но не попала в git. Живые контейнеры уже работают
с этим RestartPolicy — коммит фиксирует фактическую политику в репозитории.
This commit is contained in:
2026-11-01 19:53:23 +00:00
parent a752c91a6c
commit 13522adb0d
+3
View File
@@ -35,6 +35,7 @@ services:
# postgres
postgres:
image: docker.io/postgres:18-alpine
restart: unless-stopped
healthcheck:
test: pg_isready -q -t 2 -d $$POSTGRES_DB -U $$POSTGRES_USER
start_period: 20s
@@ -48,6 +49,7 @@ services:
# redis
redis:
image: docker.io/valkey/valkey:9.0-alpine
restart: unless-stopped
command:
- sh
- -c # this is to evaluate the $REDIS_PASSWORD from the env
@@ -63,6 +65,7 @@ services:
- netbox-redis-data:/data
redis-cache:
image: docker.io/valkey/valkey:9.0-alpine
restart: unless-stopped
command:
- sh
- -c # this is to evaluate the $REDIS_PASSWORD from the env