Set NGINX to use the default network

This commit is contained in:
2025-07-05 17:03:02 +01:00
parent 4962cf5464
commit 5d8e4b5e2c
2 changed files with 8 additions and 5 deletions

View File

@@ -9,7 +9,10 @@ services:
image: "docker.io/jc21/nginx-proxy-manager:latest" image: "docker.io/jc21/nginx-proxy-manager:latest"
restart: unless-stopped restart: unless-stopped
container_name: nginx-proxy-manager container_name: nginx-proxy-manager
network_mode: host ports:
- "80:80"
- "81:81"
- "443:443"
environment: # Uncomment this if IPv6 is not enabled on your host environment: # Uncomment this if IPv6 is not enabled on your host
- DISABLE_IPV6=true # Uncomment this if IPv6 is not enabled on your host - DISABLE_IPV6=true # Uncomment this if IPv6 is not enabled on your host
volumes: volumes:
@@ -182,7 +185,7 @@ services:
init: true init: true
restart: unless-stopped restart: unless-stopped
container_name: nextcloud-aio-mastercontainer # This line is not allowed to be changed. container_name: nextcloud-aio-mastercontainer # This line is not allowed to be changed.
network_mode: bridge #network_mode: bridge
volumes: volumes:
- nextcloud_aio_mastercontainer:/mnt/docker-aio-config # This line is not allowed to be changed. - nextcloud_aio_mastercontainer:/mnt/docker-aio-config # This line is not allowed to be changed.
- /var/run/docker.sock:/var/run/docker.sock:ro - /var/run/docker.sock:/var/run/docker.sock:ro

View File

@@ -10,9 +10,9 @@ upnpc -a $LOCAL_IP 443 443 tcp
# NEXTCLOUD # NEXTCLOUD
upnpc -a $LOCAL_IP 11000 11000 tcp upnpc -a $LOCAL_IP 11000 11000 tcp
upnpc -a $LOCAL_IP 8080 8080 tcp # AIO #upnpc -a $LOCAL_IP 8080 8080 tcp # AIO
upnpc -a $LOCAL_IP 3478 3478 tcp # talk #upnpc -a $LOCAL_IP 3478 3478 tcp # talk
upnpc -a $LOCAL_IP 3478 3478 udp # talk #upnpc -a $LOCAL_IP 3478 3478 udp # talk
# GIT # GIT
upnpc -a $LOCAL_IP 3001 3001 tcp upnpc -a $LOCAL_IP 3001 3001 tcp