try different Health settings

This commit is contained in:
zenfyr 2026-01-11 10:07:38 +07:00
commit d25b699e27
Signed by: melontini
SSH key fingerprint: SHA256:TtcIcnTnoAB5mqHofsaOxIgiMzfVBxej1AXT7DQdrTE
10 changed files with 52 additions and 27 deletions

View file

@ -6,13 +6,14 @@ Image=docker.io/groonga/pgroonga:latest-alpine-18
ContainerName=postgresql
EnvironmentFile=/etc/containers/systemd/postgresql/.env
Network=postgresql.network
HealthCmd=pg_isready -U postgres -d postgres
HealthInterval=40s
HealthTimeout=3s
HealthRetries=20
UserNS=keep-id:uid=999,gid=999
Volume=/var/containers/postgresql/data:/var/lib/postgresql/data:Z
Volume=/var/containers/postgresql/exp:/mnt/exp:Z
# Health
HealthCmd=pg_isready -U postgres -d postgres
HealthOnFailure=kill
HealthStartPeriod=30s
Notify=healthy
[Service]
Restart=always