synth.download/beeper/etc/containers/systemd/postgresql/postgresql.container

22 lines
538 B
Text

[Unit]
Description=PostgreSQL Database
[Container]
ContainerName=postgresql
Image=registry.hub.docker.com/groonga/pgroonga:latest-alpine-18
EnvironmentFile=/var/containers/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/db:/var/lib/postgresql/data:z,U
Volume=/var/containers/postgresql/exp:/mnt/exp:z,U
[Service]
Restart=always
RestartSec=10s
[Install]
WantedBy=default.target