Expose les ports docker que sur localhost

This commit is contained in:
Viyurz 2023-11-22 12:51:50 +00:00
parent 6581fc1187
commit 9b405e360e
No known key found for this signature in database
5 changed files with 11 additions and 4 deletions

View file

@ -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'!

View file

@ -165,7 +165,7 @@ http {
server_name www.viyurz.fr;
location / {
proxy_pass http://localhost:8082;
proxy_pass http://127.0.0.1:8082;
}
}

View file

@ -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

7
ports.txt Normal file
View file

@ -0,0 +1,7 @@
80/443 -> NGINX reverse proxy
995 -> SSH
8080 -> Nextcloud AIO
8081 -> Vaultwarden
8082 -> nginx-www
8083 -> SearXNG
11000 -> Nextcloud

View file

@ -8,6 +8,6 @@ services:
- SIGNUPS_ALLOWED=false
- INVITATIONS_ALLOWED=false
ports:
- 8081:80
- 127.0.0.1:8081:80
volumes:
- /mnt/vwdata:/data