[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 Environment=NEXTCLOUD_TRUSTED_DOMAINS={{ nextcloud_domains|join(" ") }} 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