Files
beepi/playbooks/ott/ott-db.container.j2
T
2026-06-18 12:25:18 +02:00

19 lines
442 B
Django/Jinja

[Unit]
Description=OpenTogetherTube Postgres
[Container]
ContainerName=ott-db
Image=docker.io/library/postgres:15-bullseye
Network=ott.network
Volume=/home/ott/data/postgres:/var/lib/postgresql/data
Environment=POSTGRES_USER=opentogethertube
Environment=POSTGRES_PASSWORD={{ ott_db_password }}
Environment=POSTGRES_DB=opentogethertube
HealthCmd=pg_isready -U opentogethertube
[Service]
Restart=on-failure
[Install]
WantedBy=default.target