2023-10-03 22:21:58 +02:00
|
|
|
---
|
|
|
|
|
2021-11-24 10:42:52 +01:00
|
|
|
version: "3.8"
|
|
|
|
|
|
|
|
networks:
|
|
|
|
default:
|
|
|
|
name: ${TRAEFIK_NETWORK_NAME:-traefik}
|
2023-07-17 12:33:30 +02:00
|
|
|
external: true
|
2021-11-24 10:42:52 +01:00
|
|
|
|
|
|
|
services:
|
2023-05-23 11:56:12 +02:00
|
|
|
nextcloud-fpm:
|
2021-11-24 10:42:52 +01:00
|
|
|
environment:
|
|
|
|
TRUSTED_PROXIES: ${TRAEFIK_NETWORK_NAME:-traefik}
|
2023-05-23 11:56:12 +02:00
|
|
|
nextcloud-web:
|
2021-11-24 10:42:52 +01:00
|
|
|
labels:
|
|
|
|
- traefik.enable=true
|
|
|
|
- traefik.docker.network=${TRAEFIK_NETWORK_NAME:-traefik}
|
|
|
|
- traefik.http.routers.${TRAEFIK_ROUTER_NAME:-nextcloud}.rule=Host(`${NEXTCLOUD_DOMAIN:?err}`)
|
|
|
|
- traefik.http.routers.${TRAEFIK_ROUTER_NAME:-nextcloud}.entrypoints=${TRAEFIK_ENTRYPOINTS:-web}
|
|
|
|
- traefik.http.routers.${TRAEFIK_ROUTER_NAME:-nextcloud}.middlewares=nextcloud_redirect
|
|
|
|
- traefik.http.middlewares.nextcloud_redirect.redirectregex.regex=/.well-known/(card|cal)dav
|
|
|
|
- traefik.http.middlewares.nextcloud_redirect.redirectregex.replacement=/remote.php/dav/
|