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

21 lines
509 B
Text
Raw Normal View History

2025-12-30 00:54:29 +07:00
[Unit]
Description=PostgreSQL Database
[Container]
2025-12-30 02:06:37 -06:00
Image=registry.hub.docker.com/groonga/pgroonga:latest-alpine-18
2025-12-30 00:54:29 +07:00
EnvironmentFile=/var/containers/postgresql/.env
Network=postgresql.network
HealthCmd=pg_isready -U postgres -d postgres
HealthInterval=40s
HealthTimeout=3s
HealthRetries=20
2025-12-30 16:49:18 +07:00
UserNS=keep-id:uid=999,gid=999
2025-12-31 02:00:56 +07:00
Volume=/var/containers/postgresql/db:/var/lib/postgresql/data:z
Volume=/var/containers/postgresql/exp:/mnt/exp:z
2025-12-30 00:54:29 +07:00
[Service]
Restart=always
RestartSec=10s
[Install]
WantedBy=default.target