Get nextcloud working
This commit is contained in:
@@ -4,7 +4,7 @@ services:
|
|||||||
container_name: nextcloud-aio-mastercontainer
|
container_name: nextcloud-aio-mastercontainer
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
- "${AIO_PORT:-8081}:8080"
|
- "${AIO_PORT}:8080"
|
||||||
volumes:
|
volumes:
|
||||||
- nextcloud_aio_mastercontainer:/mnt/docker-aio-config
|
- nextcloud_aio_mastercontainer:/mnt/docker-aio-config
|
||||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||||
@@ -15,8 +15,6 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- nextcloud-aio
|
- nextcloud-aio
|
||||||
- web
|
- web
|
||||||
env_file:
|
|
||||||
- ../.env
|
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
nextcloud_aio_mastercontainer:
|
nextcloud_aio_mastercontainer:
|
||||||
@@ -25,3 +23,5 @@ networks:
|
|||||||
nextcloud-aio:
|
nextcloud-aio:
|
||||||
web:
|
web:
|
||||||
external: true
|
external: true
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||||
- ${STORAGE_PATH}/traefik/certs:/certs:rw
|
- ${STORAGE_PATH}/traefik/certs:/certs:rw
|
||||||
- ${STORAGE_PATH}/traefik/dynamic:/dynamic:ro
|
- ./dynamic:/dynamic:ro
|
||||||
- ${STORAGE_PATH}/traefik/letsencrypt:/letsencrypt
|
- ${STORAGE_PATH}/traefik/letsencrypt:/letsencrypt
|
||||||
networks:
|
networks:
|
||||||
- web
|
- web
|
||||||
@@ -44,6 +44,9 @@ services:
|
|||||||
- "--providers.file.directory=/dynamic"
|
- "--providers.file.directory=/dynamic"
|
||||||
- "--providers.file.watch=true"
|
- "--providers.file.watch=true"
|
||||||
|
|
||||||
|
environment:
|
||||||
|
- DOMAIN=${DOMAIN}
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
web:
|
web:
|
||||||
external: true
|
external: true
|
||||||
|
|||||||
38
traefik/dynamic/nextcloud.yml
Normal file
38
traefik/dynamic/nextcloud.yml
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
http:
|
||||||
|
routers:
|
||||||
|
nextcloud:
|
||||||
|
rule: 'Host(`nextcloud.{{ env "DOMAIN" }}`)'
|
||||||
|
entryPoints:
|
||||||
|
- websecure
|
||||||
|
service: nextcloud
|
||||||
|
middlewares:
|
||||||
|
- nextcloud-chain
|
||||||
|
tls:
|
||||||
|
certResolver: letsencrypt
|
||||||
|
|
||||||
|
services:
|
||||||
|
nextcloud:
|
||||||
|
loadBalancer:
|
||||||
|
servers:
|
||||||
|
- url: "http://nextcloud-aio-apache:11000"
|
||||||
|
|
||||||
|
middlewares:
|
||||||
|
nextcloud-secure-headers:
|
||||||
|
headers:
|
||||||
|
hostsProxyHeaders:
|
||||||
|
- X-Forwarded-Host
|
||||||
|
customRequestHeaders:
|
||||||
|
X-Forwarded-Proto: https
|
||||||
|
referrerPolicy: same-origin
|
||||||
|
|
||||||
|
nextcloud-dav:
|
||||||
|
redirectRegex:
|
||||||
|
regex: "^https://([^/]+)/.well-known/(card|cal)dav"
|
||||||
|
replacement: "https://${1}/remote.php/dav/"
|
||||||
|
permanent: true
|
||||||
|
|
||||||
|
nextcloud-chain:
|
||||||
|
chain:
|
||||||
|
middlewares:
|
||||||
|
- nextcloud-dav
|
||||||
|
- nextcloud-secure-headers
|
||||||
4
traefik/dynamic/tls.yaml
Normal file
4
traefik/dynamic/tls.yaml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
tls:
|
||||||
|
certificates:
|
||||||
|
- certFile: /certs/local.crt
|
||||||
|
keyFile: /certs/local.key
|
||||||
Reference in New Issue
Block a user