Compare commits
9
Commits
1.0.0
...
efc60d1510
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
efc60d1510 | ||
|
|
6abe555100 | ||
|
|
6a5f9fb8eb | ||
|
|
a435eae93d | ||
|
|
fb5b47da0a | ||
|
|
f8b7ad6cb4 | ||
|
|
a16892bf70 | ||
|
|
1628205c35 | ||
|
|
1fbbd0ce96 |
+11
-3
@@ -1,18 +1,25 @@
|
|||||||
---
|
---
|
||||||
version: "3"
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
nextcloud:
|
nextcloud:
|
||||||
image: nextcloud:${NC_VERSION}
|
image: nextcloud:${NC_VERSION}
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
depends_on:
|
||||||
|
- db
|
||||||
environment:
|
environment:
|
||||||
- MYSQL_HOST=db
|
- MYSQL_HOST=db
|
||||||
- MYSQL_DATABASE=${NC_DATABASE_NAME}
|
- MYSQL_DATABASE=${NC_DATABASE_NAME}
|
||||||
- MYSQL_USER=${NC_DATABASE_USER}
|
- MYSQL_USER=${NC_DATABASE_USER}
|
||||||
- MYSQL_PASSWORD=${NC_DATABASE_PASS}
|
- MYSQL_PASSWORD=${NC_DATABASE_PASS}
|
||||||
|
- OVERWRITEPROTOCOL=https
|
||||||
|
- PHP_MEMORY_LIMIT=1024M
|
||||||
|
- PHP_UPLOAD_LIMIT=1024M
|
||||||
labels:
|
labels:
|
||||||
- traefik.enable=${TRAEFIK_ENABLED}
|
- 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
|
### Section HTTP
|
||||||
- traefik.http.routers.http-${TRAEFIK_ROUTER}.entrypoints=http
|
- traefik.http.routers.http-${TRAEFIK_ROUTER}.entrypoints=http
|
||||||
# redirect to HTTPS only
|
# redirect to HTTPS only
|
||||||
@@ -21,6 +28,7 @@ services:
|
|||||||
### Section HTTPS
|
### Section HTTPS
|
||||||
- traefik.http.routers.https-${TRAEFIK_ROUTER}.entrypoints=https
|
- traefik.http.routers.https-${TRAEFIK_ROUTER}.entrypoints=https
|
||||||
# configure the exposed service
|
# configure the exposed service
|
||||||
|
- traefik.http.routers.https-${TRAEFIK_ROUTER}.middlewares=hsts,nextcloud-redirectregex
|
||||||
- traefik.http.routers.https-${TRAEFIK_ROUTER}.rule=Host(`${TRAEFIK_MATCHRULE}`)
|
- traefik.http.routers.https-${TRAEFIK_ROUTER}.rule=Host(`${TRAEFIK_MATCHRULE}`)
|
||||||
# of course, enable TLS and it's certificate provider
|
# of course, enable TLS and it's certificate provider
|
||||||
- traefik.http.routers.https-${TRAEFIK_ROUTER}.tls=${TRAEFIK_TLSENABLED}
|
- traefik.http.routers.https-${TRAEFIK_ROUTER}.tls=${TRAEFIK_TLSENABLED}
|
||||||
|
|||||||
Reference in new issue
Block a user