Ubuntu 22.04.3 in multipass VM
Docker 24.0.7
Caddy Version 2.7.6
NC AIO Version 7.9.1
I am trying to set up Nextcloud AIO in a VM because I want to run multiple AIO instances on the same server (as descriped here). I get the AIO Admin working, but I can’t verify the domain (even after following the steps in “6. How to debug this”). When I finally set the variable SKIP_DOMAIN_VALIDATION=true
, I can install all the containers fine, but when I am trying to open the instance, I get a HTTP 502 Error.
Docker Compose file:
services:
nextcloud-aio-mastercontainer:
image: nextcloud/all-in-one:latest
restart: unless-stopped
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 #Tried localhost and 127.0.0.1 as well but since I added an IP in my caddyfile, I am assuming this is the right choice
- NEXTCLOUD_DATADIR=/home/ubuntu/cloud/data # Folder exists in VM
volumes:
nextcloud_aio_mastercontainer:
name: nextcloud_aio_mastercontainer
Caddy file on Server:
cloud.foo:443 {
reverse_proxy 10.45.123.221:11000 #10.45.123.221 is the internal IP of the VM
}
# AIO Admin works fine
admin.cloud.foo {
reverse_proxy https://10.45.123.221:8080 {
transport http {
tls_insecure_skip_verify
}
}
}
# Not important for Nextcloud, comes out of the box with the docker multipass image.
portainer.cloud.foo {
reverse_proxy 10.45.123.221:9000
}
Error Log when trying to verify domain:
nextcloud-aio-mastercontainer | NOTICE: PHP message: The response of the connection attempt to "https://nebula.los.ch:443" was:
nextcloud-aio-mastercontainer | NOTICE: PHP message: Expected was: d0a19f0cb51fb89a1f0ba7e50b84604f85cac88153e2558f
nextcloud-aio-mastercontainer | NOTICE: PHP message: The error message was:
Any suggestions? Thx for your help in advance!