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

39 lines
885 B
Plaintext
Raw 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:40:43 +00:00
Environment=NEXTCLOUD_TRUSTED_DOMAINS={% for domain in nextcloud_domains %}{{domain}} {% endfor %}
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