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

39 lines
858 B
Plaintext
Raw Permalink Normal View History

2024-02-03 21:12:59 +00:00
[Unit]
Description=Nextcloud App
Requires=nextcloud-postgres.service
Requires=nextcloud-redis.service
After=nextcloud-postgres.service
After=nextcloud-redis.service
[Container]
ContainerName=nextcloud-app
Image=docker.io/library/nextcloud:{{ nextcloud_version }}-fpm-alpine
Environment=REDIS_HOST=nextcloud-redis
Environment=POSTGRES_HOST=nextcloud-postgres
Environment=POSTGRES_USER=nextcloud
Environment=POSTGRES_PASSWORD=nextcloud
Environment=POSTGRES_DB=nextcloud
2024-02-04 00:53:47 +00:00
Environment=NEXTCLOUD_TRUSTED_DOMAINS={{ nextcloud_domains|join(" ") }}
2024-02-03 21:12:59 +00:00
Network=nextcloud.network
Volume=/var/nextcloud/app:/var/www/html:z
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