Track 2 уровня 5

This commit is contained in:
2026-10-15 20:55:44 +03:00
parent 09b4b1d49d
commit 9fabf8dff3
10 changed files with 810 additions and 8 deletions
+24
View File
@@ -125,9 +125,33 @@ services:
condition: service_healthy
restart: unless-stopped
postgres-restore:
image: postgres:16.15-alpine3.24@sha256:721873c34ceb9f8d8fc265984940dc982404c105f19ad51be9fdc5970a6080ea
profiles: ["recovery"]
environment:
POSTGRES_USER: ${POSTGRES_USER:-messenger}
POSTGRES_DB: ${POSTGRES_RESTORE_DB:-messenger_restore_admin}
POSTGRES_PASSWORD_FILE: /run/secrets/postgres_password
secrets:
- postgres_password
volumes:
- postgres_restore_data:/var/lib/postgresql/data
healthcheck:
test:
[
"CMD-SHELL",
"pg_isready -U ${POSTGRES_USER:-messenger} -d ${POSTGRES_RESTORE_DB:-messenger_restore_admin}",
]
interval: 5s
timeout: 3s
retries: 10
start_period: 5s
restart: "no"
volumes:
postgres_data:
redis_insight_data:
postgres_restore_data:
secrets:
postgres_password: