Rename docker network into proxy.
This commit is contained in:
parent
4679608188
commit
b33f37678e
2 changed files with 4 additions and 6 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue