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 - /var/run/docker.sock:/tmp/docker.sock:ro
- /etc/hosts:/tmp/hosts:rw - /etc/hosts:/tmp/hosts:rw
- ./hostman.sh:/hostman.sh - ./hostman.sh:/hostman.sh
networks:
- reverseproxy
nginx-proxy: nginx-proxy:
image: jwilder/nginx-proxy image: jwilder/nginx-proxy
ports: ports:
@ -18,9 +16,9 @@ services:
volumes: volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro - /var/run/docker.sock:/tmp/docker.sock:ro
networks: networks:
- reverseproxy - proxy
networks: networks:
reverseproxy: proxy:
name: reverseproxy name: proxy
external: false external: false

View file

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