psql and mastodon
This commit is contained in:
parent
eeefce6c1c
commit
6a6dba369d
12 changed files with 153 additions and 8 deletions
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue