diff --git a/Dockerfile b/Dockerfile index 86ac4b4..8b323ea 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,6 +23,7 @@ ENV AUTH=0 \ VERSION=1 \ VOLUMES=0 COPY haproxy.cfg /usr/local/etc/haproxy/haproxy.cfg +VOLUME /run/docker-filtered # Metadata ARG VCS_REF diff --git a/haproxy.cfg b/haproxy.cfg index e63785b..d7f5dd0 100644 --- a/haproxy.cfg +++ b/haproxy.cfg @@ -40,7 +40,7 @@ backend dockerbackend server dockersocket /var/run/docker.sock frontend dockerfrontend - bind :2375 + bind :2375,/run/docker-filtered/docker.sock http-request deny unless METH_GET || { env(POST) -m bool } http-request deny if { path,url_dec -m reg -i ^(/v[\d\.]+)?/auth } ! { env(AUTH) -m bool } http-request deny if { path,url_dec -m reg -i ^(/v[\d\.]+)?/build } ! { env(BUILD) -m bool }