-
Notifications
You must be signed in to change notification settings - Fork 896
-
I'm using Windows and I have 127.0.0.1 nextcloud.local in my hosts file. and made certificates using mkcert in adjacent folder to compose called certs
compose.yaml:
services:
nextcloud-aio-mastercontainer:
image: ghcr.io/nextcloud-releases/all-in-one:latest
init: true
restart: always
container_name: nextcloud-aio-mastercontainer
volumes:
- nextcloud_aio_mastercontainer:/mnt/docker-aio-config
- /var/run/docker.sock:/var/run/docker.sock:ro
ports:
- 8080:8080
environment:
APACHE_PORT: 11000
APACHE_IP_BINDING: 0.0.0.0
SKIP_DOMAIN_VALIDATION: true
NEXTCLOUD_TRUSTED_DOMAINS: nextcloud.local
TRUSTED_PROXIES: 172.18.0.0/16
OVERWRITEHOST: nextcloud.local
OVERWRITEPROTOCOL: https
OVERWRITECLIURL: https://nextcloud.local
networks:
- nextcloud-aio
caddy:
image: caddy:alpine
restart: always
container_name: caddy
volumes:
- caddy_config:/config
- caddy_data:/data
- ./certs:/certs:ro
networks:
- nextcloud-aio
ports:
- "443:443"
configs:
- source: Caddyfile
target: /etc/caddy/Caddyfile
configs:
Caddyfile:
content: |
https://nextcloud.local:443 {
tls /certs/nextcloud.local+4.pem /certs/nextcloud.local+4-key.pem
reverse_proxy 172.18.0.1:11000 {
header_up X-Forwarded-Proto {scheme}
header_up X-Forwarded-Host {host}
}
}
volumes:
nextcloud_aio_mastercontainer:
name: nextcloud_aio_mastercontainer
caddy_config:
caddy_data:
networks:
nextcloud-aio:
external: true
I need it locally for internal use, production server can be Linux if needed or preferred.
I have tried various ways but couldn't get to what exactly I want (Collabora working, desktop client connecting) it's either one or the other.
The compose I gave is working with desktop client but have issues when running like websockets not connecting for Collabora and the following image:
image
Beta Was this translation helpful? Give feedback.
All reactions
Hi, please post this at https://help.nextcloud.com. There more eyes will see this.
Replies: 1 comment
-
Hi, please post this at https://help.nextcloud.com. There more eyes will see this.
Beta Was this translation helpful? Give feedback.
All reactions
-
👍 1