Rename docker network into proxy.

This commit is contained in:
Kevin Baensch 2022-11-04 13:54:00 +01:00
parent 4679608188
commit b33f37678e
2 changed files with 4 additions and 6 deletions

View file

@ -8,8 +8,6 @@ services:
- /var/run/docker.sock:/tmp/docker.sock:ro
- /etc/hosts:/tmp/hosts:rw
- ./hostman.sh:/hostman.sh
networks:
- reverseproxy
nginx-proxy:
image: jwilder/nginx-proxy
ports:
@ -18,9 +16,9 @@ services:
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
networks:
- reverseproxy
- proxy
networks:
reverseproxy:
name: reverseproxy
proxy:
name: proxy
external: false

View file

@ -2,7 +2,7 @@
# Configurable Variables
DOCKER_SOCK_PATH="/tmp/docker.sock"
HOST_CONF_PATH="/tmp/hosts"
NETWORK_NAME="reverseproxy"
NETWORK_NAME="proxy"
query_docker () {
echo $(curl --unix-socket $DOCKER_SOCK_PATH --silent -g http://v1.41/$1/json$2)