You've already forked nextcloud
Compare commits
6 Commits
1.0.0
...
a435eae93d
Author | SHA1 | Date | |
---|---|---|---|
a435eae93d | |||
fb5b47da0a | |||
f8b7ad6cb4 | |||
a16892bf70 | |||
1628205c35 | |||
1fbbd0ce96 |
@@ -1,18 +1,19 @@
|
||||
---
|
||||
version: "3"
|
||||
|
||||
services:
|
||||
nextcloud:
|
||||
image: nextcloud:${NC_VERSION}
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
- db
|
||||
environment:
|
||||
- MYSQL_HOST=db
|
||||
- MYSQL_DATABASE=${NC_DATABASE_NAME}
|
||||
- MYSQL_USER=${NC_DATABASE_USER}
|
||||
- MYSQL_PASSWORD=${NC_DATABASE_PASS}
|
||||
- OVERWRITEPROTOCOL=https
|
||||
labels:
|
||||
- traefik.enable=${TRAEFIK_ENABLED}
|
||||
- traefik.docker.network=traefik
|
||||
- traefik.docker.network=${TRAEFIK_NETWORK}
|
||||
### Section HTTP
|
||||
- traefik.http.routers.http-${TRAEFIK_ROUTER}.entrypoints=http
|
||||
# redirect to HTTPS only
|
||||
@@ -27,6 +28,11 @@ services:
|
||||
- traefik.http.routers.https-${TRAEFIK_ROUTER}.tls.certresolver=${TRAEFIK_CERTRESOLVER}
|
||||
# specify a service so a custom port can be used
|
||||
- traefik.http.services.${TRAEFIK_SERVICE}.loadbalancer.server.port=${TRAEFIK_SERVICE_PORT}
|
||||
# specify a custom middleware for nextcloud-specific configuration
|
||||
- traefik.http.middlewares.nextcloud-redirectregex.redirectRegex.permanent=true
|
||||
- traefik.http.middlewares.nextcloud-redirectregex.redirectRegex.regex="https://(.*)/.well-known/(card|cal)dav"
|
||||
- traefik.http.middlewares.nextcloud-redirectregex.redirectRegex.replacement="https://$${1}/remote.php/dav/"
|
||||
- traefik.http.routers.https-${TRAEFIK_ROUTER}.middlewares=nextcloud-redirectregex
|
||||
networks:
|
||||
- internal
|
||||
- traefik
|
||||
|
Reference in New Issue
Block a user