You've already forked nextcloud
Compare commits
8 Commits
1.0.0
...
production
Author | SHA1 | Date | |
---|---|---|---|
6abe555100 | |||
6a5f9fb8eb | |||
a435eae93d | |||
fb5b47da0a | |||
f8b7ad6cb4 | |||
a16892bf70 | |||
1628205c35 | |||
1fbbd0ce96 |
@@ -1,18 +1,23 @@
|
||||
---
|
||||
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}
|
||||
# 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/"
|
||||
### Section HTTP
|
||||
- traefik.http.routers.http-${TRAEFIK_ROUTER}.entrypoints=http
|
||||
# redirect to HTTPS only
|
||||
@@ -21,6 +26,7 @@ services:
|
||||
### Section HTTPS
|
||||
- traefik.http.routers.https-${TRAEFIK_ROUTER}.entrypoints=https
|
||||
# configure the exposed service
|
||||
- traefik.http.routers.https-${TRAEFIK_ROUTER}.middlewares=hsts,nextcloud-redirectregex
|
||||
- traefik.http.routers.https-${TRAEFIK_ROUTER}.rule=Host(`${TRAEFIK_MATCHRULE}`)
|
||||
# of course, enable TLS and it's certificate provider
|
||||
- traefik.http.routers.https-${TRAEFIK_ROUTER}.tls=${TRAEFIK_TLSENABLED}
|
||||
|
Reference in New Issue
Block a user