File tree Expand file tree Collapse file tree 4 files changed +9
-13
lines changed Expand file tree Collapse file tree 4 files changed +9
-13
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -5,10 +5,10 @@ USER root
55ENV HAPROXY_PORT 2375
66ENV BIND_ADDRESS *
77ENV EX_APPS_NET "localhost"
8- ENV EX_APPS_COUNT 50
8+ ENV EX_APPS_COUNT 30
99ENV TIMEOUT_CONNECT "10s"
1010ENV TIMEOUT_CLIENT "30s"
11- ENV TIMEOUT_SERVER "30s "
11+ ENV TIMEOUT_SERVER "1800s "
1212
1313RUN set -ex; \
1414 apk add --no-cache \
@@ -18,7 +18,8 @@ RUN set -ex; \
1818 curl \
1919 openssl \
2020 bind-tools \
21- nano; \
21+ nano \
22+ vim; \
2223 chmod -R 777 /tmp
2324
2425COPY --chmod=775 *.sh /
@@ -28,3 +29,4 @@ COPY --chmod=664 haproxy_ex_apps.cfg /haproxy_ex_apps.cfg
2829WORKDIR /
2930ENTRYPOINT ["/bin/bash" , "start.sh" ]
3031HEALTHCHECK --interval=10s --timeout=10s --retries=9 CMD /healthcheck.sh
32+ LABEL com.centurylinklabs.watchtower.enable="false"
Original file line number Diff line number Diff line change @@ -41,6 +41,8 @@ frontend docker_engine
4141 http-request allow if { path,url_dec -m reg -i ^(/v[\ d\ .]+)?/_ping } METH_GET
4242 # container inspect: GET containers/%s/json
4343 http-request allow if { path,url_dec -m reg -i ^(/v[\ d\ .]+)?/containers/nc_app_[a-zA-Z0-9_.-]+/json } METH_GET
44+ # container inspect: GET containers/%s/logs
45+ http-request allow if { path,url_dec -m reg -i ^(/v[\ d\ .]+)?/containers/nc_app_[a-zA-Z0-9_.-]+/logs } METH_GET
4446 # container start/stop: POST containers/%s/start containers/%s/stop
4547 http-request allow if { path,url_dec -m reg -i ^(/v[\ d\ .]+)?/containers/nc_app_[a-zA-Z0-9_.-]+/((start)|(stop)) } METH_POST
4648 # container rm: DELETE containers/%s
Original file line number Diff line number Diff line change 2626 cat /haproxy.cfg
2727 haproxy -f /haproxy.cfg -db
2828fi
29+ echo " HaProxy quit unexpectedly"
30+ exit 1
You can’t perform that action at this time.
0 commit comments