diff --git a/Dockerfile b/Dockerfile index 3def275..b038252 100644 --- a/Dockerfile +++ b/Dockerfile @@ -32,5 +32,4 @@ ENV ALLOW_RESTARTS=0 \ TASKS=0 \ VERSION=1 \ VOLUMES=0 -COPY docker-entrypoint.sh /usr/local/bin/ -COPY haproxy.cfg /usr/local/etc/haproxy/haproxy.cfg.template +COPY haproxy.cfg /usr/local/etc/haproxy/haproxy.cfg diff --git a/haproxy.cfg b/haproxy.cfg index 9450c1e..dec2bbf 100644 --- a/haproxy.cfg +++ b/haproxy.cfg @@ -45,7 +45,7 @@ backend docker-events timeout server 0 frontend dockerfrontend - bind ${BIND_CONFIG} + bind :::2375 v4v6 http-request deny unless METH_GET || { env(POST) -m bool } http-request allow if { path,url_dec -m reg -i ^(/v[\d\.]+)?/containers/[a-zA-Z0-9_.-]+/((stop)|(restart)|(kill)) } { env(ALLOW_RESTARTS) -m bool } http-request allow if { path,url_dec -m reg -i ^(/v[\d\.]+)?/containers/[a-zA-Z0-9_.-]+/start } { env(ALLOW_START) -m bool }