[Unit]
Description=Gitea Postgres

[Container]
ContainerName=gitea-db
Image=docker.io/library/postgres:14
Network=gitea.network
Volume=/home/gitea/data/postgres:/var/lib/postgresql/data
Environment=POSTGRES_USER=gitea
Environment=POSTGRES_PASSWORD={{ gitea_db_password }}
Environment=POSTGRES_DB=gitea

[Service]
Restart=on-failure

[Install]
WantedBy=default.target
