role-nextcloud/templates/nextcloud-postgres.quadlet.j2

30 lines
620 B
Plaintext
Raw Permalink Normal View History

2024-02-03 21:12:59 +00:00
[Unit]
Description=Nextcloud Postgres
[Container]
ContainerName=nextcloud-postgres
Image=docker.io/library/postgres:{{ nextcloud_postgres_version }}
Environment=TZ=Europe/Berlin
Environment=POSTGRES_USER=nextcloud
Environment=POSTGRES_PASSWORD=nextcloud
Environment=POSTGRES_DB=nextcloud
Network=nextcloud.network
Volume=/var/nextcloud/postgres:/var/lib/postgresql/data:rw
Label="traefik.enable=false"
[Service]
Restart=on-failure
# Restart Delay
RestartSec=30
# Allowed time for the service to start.
TimeoutStartSec=90
# Allowed time for the service to stop.
TimeoutStopSec=90
[Install]
WantedBy=default.target