ADD unix-socket
This commit is contained in:
parent
6e7cec107e
commit
ed1ab31983
@ -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
|
||||
|
@ -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 }
|
||||
|
Loading…
Reference in New Issue
Block a user