From 8319086508bf8e9bf80eacde1c9fb10addcf85cb Mon Sep 17 00:00:00 2001 From: Zach Young <1951403+omnizach@users.noreply.github.com> Date: Wed, 14 Jan 2026 10:13:54 -0500 Subject: [PATCH] Feature #7351. Adding APACHE_LABEL to apply to support label-based reverse proxies. --- Containers/apache/Dockerfile | 3 ++- Containers/domaincheck/Dockerfile | 3 ++- compose.yaml | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Containers/apache/Dockerfile b/Containers/apache/Dockerfile index 0948fb25..c4dc0a95 100644 --- a/Containers/apache/Dockerfile +++ b/Containers/apache/Dockerfile @@ -88,4 +88,5 @@ CMD ["/usr/bin/supervisord", "-c", "/supervisord.conf"] HEALTHCHECK CMD /healthcheck.sh LABEL com.centurylinklabs.watchtower.enable="false" \ - org.label-schema.vendor="Nextcloud" + org.label-schema.vendor="Nextcloud" \ + $APACHE_LABEL diff --git a/Containers/domaincheck/Dockerfile b/Containers/domaincheck/Dockerfile index 769c24ac..c1c9c027 100644 --- a/Containers/domaincheck/Dockerfile +++ b/Containers/domaincheck/Dockerfile @@ -18,4 +18,5 @@ ENTRYPOINT ["/start.sh"] HEALTHCHECK CMD nc -z 127.0.0.1 $APACHE_PORT || exit 1 LABEL com.centurylinklabs.watchtower.enable="false" \ - org.label-schema.vendor="Nextcloud" + org.label-schema.vendor="Nextcloud" \ + $APACHE_LABEL diff --git a/compose.yaml b/compose.yaml index c18d92d3..4e9474c4 100644 --- a/compose.yaml +++ b/compose.yaml @@ -20,6 +20,7 @@ services: # APACHE_PORT: 11000 # Is needed when running behind a web server or reverse proxy (like Apache, Nginx, Caddy, Cloudflare Tunnel and else). See https://github.com/nextcloud/all-in-one/blob/main/reverse-proxy.md # APACHE_IP_BINDING: 127.0.0.1 # Should be set when running behind a web server or reverse proxy (like Apache, Nginx, Caddy, Cloudflare Tunnel and else) that is running on the same host. See https://github.com/nextcloud/all-in-one/blob/main/reverse-proxy.md # APACHE_ADDITIONAL_NETWORK: frontend_net # (Optional) Connect the apache container to an additional docker network. Needed when behind a web server or reverse proxy (like Apache, Nginx, Caddy, Cloudflare Tunnel and else) running in a different docker network on same server. See https://github.com/nextcloud/all-in-one/blob/main/reverse-proxy.md + # APACHE_LABEL: traefik.enable=true traefik.http.routers.nextcloud.rule=Host(`nextcloud.mydomain.com`) # (Optional) Add additional labels to the domaincheck and apache containers. This allows label-based reverse proxies like Traefik and TSDProxy to be configured, but generally provides all labels provided, space delimited. Enclose = with double quotes (e.g. "mylabel with a space"="my value with a space") to escape spaces. # BORG_RETENTION_POLICY: --keep-within=7d --keep-weekly=4 --keep-monthly=6 # Allows to adjust borgs retention policy. See https://github.com/nextcloud/all-in-one#how-to-adjust-borgs-retention-policy # COLLABORA_SECCOMP_DISABLED: false # Setting this to true allows to disable Collabora's Seccomp feature. See https://github.com/nextcloud/all-in-one#how-to-disable-collaboras-seccomp-feature # DOCKER_API_VERSION: 1.44 # You can adjust the internally used docker api version with this variable. ⚠️⚠️⚠️ Warning: please note that only the default api version (unset this variable) is supported and tested by the maintainers of Nextcloud AIO. So use this on your own risk and things might break without warning. See https://github.com/nextcloud/all-in-one#how-to-adjust-the-internally-used-docker-api-version