mirror of
https://github.com/alkimake/paperclip.git
synced 2026-06-15 02:20:38 +09:00
21 lines
468 B
Text
21 lines
468 B
Text
|
|
[Unit]
|
||
|
|
Description=PostgreSQL for Paperclip
|
||
|
|
|
||
|
|
[Container]
|
||
|
|
Image=docker.io/library/postgres:17-alpine
|
||
|
|
ContainerName=paperclip-db
|
||
|
|
Pod=paperclip.pod
|
||
|
|
Volume=paperclip-pgdata:/var/lib/postgresql/data
|
||
|
|
EnvironmentFile=%h/.config/containers/systemd/paperclip.env
|
||
|
|
HealthCmd=pg_isready -U $POSTGRES_USER -d $POSTGRES_DB -h localhost || exit 1
|
||
|
|
HealthInterval=15s
|
||
|
|
HealthTimeout=5s
|
||
|
|
HealthRetries=5
|
||
|
|
|
||
|
|
[Service]
|
||
|
|
Restart=on-failure
|
||
|
|
TimeoutStartSec=60
|
||
|
|
|
||
|
|
[Install]
|
||
|
|
WantedBy=default.target
|