push
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user