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

22 lines
530 B
Text

[Unit]
Description=PostgreSQL Database
[Container]
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
[Service]
Restart=always
RestartSec=10s
[Install]
WantedBy=default.target