-
hi in AiO yaml file template, could it be possible to add network specs to assure the nextcloud-aio-apache container to be linked to the same local IP after each update and restart? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 9 replies
-
Hi, honestly if you are using the private ip-address of the mastercontainer in your nginx config, you are doing something wrong... Can you post your nginx config here and how did you install nginx? If it should be running as a separate container, can you also post its docker run command or docker compose file here? |
Beta Was this translation helpful? Give feedback.
-
thanks Simon @szaimen for your reply and analysis I made a mistake mentioning the here is my yaml - in Portainer which allocates apache to 172.22.0.13 this time and mastercontainer to 172.22.0.3 version: "3.8"
volumes:
nextcloud_aio_mastercontainer:
name: nextcloud_aio_mastercontainer #
services:
nextcloud:
image: nextcloud/all-in-one:latest
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:
- 8895:8080
environment:
- APACHE_PORT=11000
- APACHE_IP_BINDING=0.0.0.0
- APACHE_DISABLE_REWRITE_IP=1
- NEXTCLOUD_TRUSTED_DOMAINS=mydomain.net #123.345.456.789
- TRUSTED_PROXIES= 172.22.0.0/16
- NEXTCLOUD_MOUNT=/mnt/docker/nextcloud-aio/
- NEXTCLOUD_UPLOAD_LIMIT=1G
- NEXTCLOUD_MEMORY_LIMIT=4096M
- NEXTCLOUD_ADDITIONAL_APKS=imagemagick libpq-dev
- NEXTCLOUD_ADDITIONAL_PHP_EXTENSIONS=imagick pgsql
- TALK_PORT=3478
- OVERWRITEPROTOCOL=https Next to it, i'm using Nginx Proxy Manager |
Beta Was this translation helpful? Give feedback.
-
well.. Nginx network_mode is set to "host" as documentation requests (or requested 2 years ago ^^) removing this broke all my proxies networks:
default:
external: true
name: nextcloud-aio are you asking to add this network to only Nginx Prowy Manager? doing this change, i can still access my NPM UI with public IP but it won't take my login and password.. 🥺 |
Beta Was this translation helpful? Give feedback.
I see. Can you add NPM to the
nextcloud-aio
network and then usenextcloud-aio-apache
instead of172.22.0.13
in your NPM config?