From 13522adb0d4ecbff3d75eae43d7d2ba926d2ce16 Mon Sep 17 00:00:00 2001 From: HermeS Date: Sun, 1 Nov 2026 19:53:23 +0000 Subject: [PATCH] =?UTF-8?q?netbox:=20restart:=20unless-stopped=20=D0=B4?= =?UTF-8?q?=D0=BB=D1=8F=20postgres,=20redis,=20redis-cache=20(#6)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Правка была применена в рабочем дереве ещё во время восстановления после падения postgres/redis, но не попала в git. Живые контейнеры уже работают с этим RestartPolicy — коммит фиксирует фактическую политику в репозитории. --- docker-compose.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 078ca25..b00cc89 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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