diff --git a/stacks/nextcloud.yml b/stacks/nextcloud.yml index 8a81400d..a3e77271 100644 --- a/stacks/nextcloud.yml +++ b/stacks/nextcloud.yml @@ -6,6 +6,7 @@ # php occ --no-warnings app:enable --force richdocuments # php occ --no-warnings config:app:set richdocuments wopi_url --value="https://collabora.localhost" # php occ --no-warnings config:app:set richdocuments wopi_allowlist --value=10.0.0.0/8 +# php occ --no-warnings config:system:set maintenance_window_start --type=integer --value=1 version: '3.8' @@ -40,11 +41,12 @@ services: - /bin/sh - -c - | - cp /etc/nginx/nginx-nextcloud.conf /etc/nginx/nginx.conf + cp $${NGINX_CONF} /etc/nginx/nginx.conf sed -i -e 's/app:9000/'$$STACK_NAME'_app:9000/g' /etc/nginx/nginx.conf nginx -g 'daemon off;' environment: - STACK_NAME={{ index .Service.Labels "com.docker.stack.namespace" }} + - NGINX_CONF=${NGINX_CONF:-/etc/nginx/nginx-nextcloud.conf} volumes: - ${VOLUME_PATH}nextcloud:/var/www/html:cached deploy: