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

22 lines
534 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-31 03:13:47 +07:00
ContainerName=postgresql
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
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