This commit is contained in:
MaKarin
2026-04-04 20:06:21 +03:00
parent cf53ab8cf9
commit 698bc64d41
2 changed files with 22 additions and 4 deletions

View File

@@ -7,6 +7,8 @@ services:
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-change-me}
POSTGRES_DB: ${POSTGRES_DB:-toir}
# UTF-8 cluster (applies only on first volume init) — migrations use Cyrillic enum labels
POSTGRES_INITDB_ARGS: "--encoding=UTF-8 --locale=C.UTF-8"
healthcheck:
test:
[
@@ -64,7 +66,8 @@ services:
restart: unless-stopped
depends_on:
server:
condition: service_healthy
# Do not wait for healthy: if migrations fail, stack stays up so you can read server logs.
condition: service_started
healthcheck:
test: ["CMD-SHELL", "wget -qO- http://127.0.0.1/healthz >/dev/null 2>&1 || exit 1"]
interval: 15s