psql and mastodon

This commit is contained in:
zenfyr 2025-12-30 00:54:29 +07:00
commit 6a6dba369d
Signed by: melontini
SSH key fingerprint: SHA256:TtcIcnTnoAB5mqHofsaOxIgiMzfVBxej1AXT7DQdrTE
12 changed files with 153 additions and 8 deletions

View file

@ -0,0 +1,20 @@
[Unit]
Description=PostgreSQL Database
[Container]
Image=groonga/pgroonga:latest-alpine-17
EnvironmentFile=/var/containers/postgresql/.env
Network=postgresql.network
HealthCmd=pg_isready -U postgres -d postgres
HealthInterval=40s
HealthTimeout=3s
HealthRetries=20
Volume=/var/containers/postgresql/db:/var/lib/postgresql/data:z
Volume=/var/containers/postgresql/exp:/mnt/exp:z
[Service]
Restart=always
RestartSec=10s
[Install]
WantedBy=default.target