try different Health settings
This commit is contained in:
parent
7405c6adea
commit
d25b699e27
10 changed files with 52 additions and 27 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue