From a93a31b036d4809c2885312be78cb687391f8f4c Mon Sep 17 00:00:00 2001 From: josep-tecnativa Date: Tue, 20 Aug 2024 10:32:29 +0200 Subject: [PATCH] Test commit --- Dockerfile | 3 +-- haproxy.cfg | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) 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 }