I’ve been trying to get the aio container running behind nginx that’s running in a separate container, with both containers sharing a docker network with no luck.
Installing NextCloud AIO behind a reverse proxy (nginx) with a Docker network - Installation - Nextcloud community seems somewhat similar but it looks like they got through to the server and got an error there.
Going through the reverse-proxy tutorial I got these configs
version: "3.9"
services:
cloud:
container_name: "nextcloud-aio-mastercontainer"
image: nextcloud/all-in-one:latest
init: true
restart: always
ports:
- "8000:8080"
environment:
- APACHE_PORT=11000
- APACHE_IP_BINDING=0.0.0.0
volumes:
- nextcloud_aio_mastercontainer:/mnt/docker-aio-config
- /var/run/docker.sock:/var/run/docker.sock:ro
networks:
- defnet
volumes:
nextcloud_aio_mastercontainer:
name: "nextcloud_aio_mastercontainer"
networks:
defnet:
name: defnet
external: true
server {
listen 443 ssl;
server_name www.example.com;
ssl_certificate /etc/certbot/live/example.com/fullchain.pem;
ssl_certificate_key /etc/certbot/live/example.com/privkey.pem;
ssl_session_timeout 1d;
ssl_session_cache shared:MozSSL:10m; # about 40000 sessions
ssl_session_tickets off;
location / {
proxy_pass http://cloud:11000$request_uri;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Port $server_port;
proxy_set_header X-Forwarded-Scheme $scheme;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Accept-Encoding "";
proxy_set_header Host $host;
client_body_buffer_size 512k;
proxy_read_timeout 86400s;
client_max_body_size 0;
# Websocket
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
}
}
Where is the 11000 port supposed to be opened? Running docker ps it’s not exposed normally through docker, and trying netcap I got through to all the expected ports at the container’s ip except for 11000
Trying other hosts for the proxy_pass also got me nothing