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
5
5
ENV HAPROXY_PORT 2375
6
6
ENV BIND_ADDRESS *
7
7
ENV EX_APPS_NET "localhost"
8
- ENV EX_APPS_COUNT 50
8
+ ENV EX_APPS_COUNT 30
9
9
ENV TIMEOUT_CONNECT "10s"
10
10
ENV TIMEOUT_CLIENT "30s"
11
- ENV TIMEOUT_SERVER "30s "
11
+ ENV TIMEOUT_SERVER "1800s "
12
12
13
13
RUN set -ex; \
14
14
apk add --no-cache \
@@ -18,7 +18,8 @@ RUN set -ex; \
18
18
curl \
19
19
openssl \
20
20
bind-tools \
21
- nano; \
21
+ nano \
22
+ vim; \
22
23
chmod -R 777 /tmp
23
24
24
25
COPY --chmod=775 *.sh /
@@ -28,3 +29,4 @@ COPY --chmod=664 haproxy_ex_apps.cfg /haproxy_ex_apps.cfg
28
29
WORKDIR /
29
30
ENTRYPOINT ["/bin/bash" , "start.sh" ]
30
31
HEALTHCHECK --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
41
41
http-request allow if { path,url_dec -m reg -i ^(/v[\ d\ .]+)?/_ping } METH_GET
42
42
# container inspect: GET containers/%s/json
43
43
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
44
46
# container start/stop: POST containers/%s/start containers/%s/stop
45
47
http-request allow if { path,url_dec -m reg -i ^(/v[\ d\ .]+)?/containers/nc_app_[a-zA-Z0-9_.-]+/((start)|(stop)) } METH_POST
46
48
# container rm: DELETE containers/%s
Original file line number Diff line number Diff line change 26
26
cat /haproxy.cfg
27
27
haproxy -f /haproxy.cfg -db
28
28
fi
29
+ echo " HaProxy quit unexpectedly"
30
+ exit 1
You can’t perform that action at this time.
0 commit comments