[Unit]
Description=Postgres for ircd
Requires=ircd-network.service ircd-postgres-volume.service
After=ircd-network.service ircd-postgres-volume.service
[Container]
Image=docker.io/library/postgres:16
ContainerName=ircd-postgres
Network=ircd.network
Volume=ircd-postgres.volume:/var/lib/postgresql/data:Z
EnvironmentFile=%h/ircd/ircd.env
Environment=POSTGRES_DB=ircd POSTGRES_USER=ircd
# Healthcheck so the ircd unit can wait for the DB before starting.
HealthCmd=pg_isready -U ircd -d ircd
HealthInterval=5s
HealthRetries=12
[Service]
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target default.target
neiam
/oh-my-ex-oh-ircd
public · Issues · Pulls · Labels · Forks · Compare · Actions success · Badges · Packages
⭐
Log in to mark this repository.
622 B · text
History
442a476