From b33f37678e5c0a3759af6755bd4a28f00593e1c0 Mon Sep 17 00:00:00 2001 From: Kevin Baensch Date: Fri, 4 Nov 2022 13:54:00 +0100 Subject: [PATCH] Rename docker network into proxy. --- docker-compose.yml | 8 +++----- hostman.sh | 2 +- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index e200557..646b927 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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 diff --git a/hostman.sh b/hostman.sh index 792c981..85d0722 100755 --- a/hostman.sh +++ b/hostman.sh @@ -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)