From 9b405e360ec57d00a2ea8ae857b1dab478721ab5 Mon Sep 17 00:00:00 2001 From: Viyurz <128215328+Viyurz@users.noreply.github.com> Date: Wed, 22 Nov 2023 12:51:50 +0000 Subject: [PATCH] Expose les ports docker que sur localhost --- nc/docker-compose.yaml | 2 +- nginx-rp/nginx.conf | 2 +- nginx-www/docker-compose.yaml | 2 +- ports.txt | 7 +++++++ vw/docker-compose.yaml | 2 +- 5 files changed, 11 insertions(+), 4 deletions(-) create mode 100644 ports.txt diff --git a/nc/docker-compose.yaml b/nc/docker-compose.yaml index 5c2bea4..ce4de5a 100644 --- a/nc/docker-compose.yaml +++ b/nc/docker-compose.yaml @@ -8,7 +8,7 @@ services: - APACHE_IP_BINDING=127.0.0.1 # Should be set when running behind a web server or reverse proxy (like Apache, Nginx, Cloudflare Tunnel and else) that is running on the same host. See https://github.com/nextcloud/all-in-one/blob/main/reverse-proxy.md - NEXTCLOUD_DATADIR=/mnt/ncdata # Allows to set the host directory for Nextcloud's datadir. ⚠️⚠️⚠️ Warning: do not set or adjust this value after the initial Nextcloud installation is done! See https://github.com/nextcloud/all-in-one#how-to-change-the-default-location-of-nextclouds-datadir ports: - - 8080:8080 + - 127.0.0.1:8080:8080 volumes: - nextcloud_aio_mastercontainer:/mnt/docker-aio-config # This line is not allowed to be changed as otherwise the built-in backup solution will not work - /var/run/docker.sock:/var/run/docker.sock:ro # May be changed on macOS, Windows or docker rootless. See the applicable documentation. If adjusting, don't forget to also set 'WATCHTOWER_DOCKER_SOCKET_PATH'! diff --git a/nginx-rp/nginx.conf b/nginx-rp/nginx.conf index 9a611ec..cc0760c 100644 --- a/nginx-rp/nginx.conf +++ b/nginx-rp/nginx.conf @@ -165,7 +165,7 @@ http { server_name www.viyurz.fr; location / { - proxy_pass http://localhost:8082; + proxy_pass http://127.0.0.1:8082; } } diff --git a/nginx-www/docker-compose.yaml b/nginx-www/docker-compose.yaml index b669474..f18e962 100644 --- a/nginx-www/docker-compose.yaml +++ b/nginx-www/docker-compose.yaml @@ -4,7 +4,7 @@ services: restart: always container_name: nginx-www ports: - - 8082:80 + - 127.0.0.1:8082:80 volumes: - ./nginx.conf:/etc/nginx/nginx.conf - ./index:/mnt/index diff --git a/ports.txt b/ports.txt new file mode 100644 index 0000000..a495222 --- /dev/null +++ b/ports.txt @@ -0,0 +1,7 @@ +80/443 -> NGINX reverse proxy +995 -> SSH +8080 -> Nextcloud AIO +8081 -> Vaultwarden +8082 -> nginx-www +8083 -> SearXNG +11000 -> Nextcloud diff --git a/vw/docker-compose.yaml b/vw/docker-compose.yaml index 762aa10..019cf85 100644 --- a/vw/docker-compose.yaml +++ b/vw/docker-compose.yaml @@ -8,6 +8,6 @@ services: - SIGNUPS_ALLOWED=false - INVITATIONS_ALLOWED=false ports: - - 8081:80 + - 127.0.0.1:8081:80 volumes: - /mnt/vwdata:/data