-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
22 lines (18 loc) · 827 Bytes
/
Dockerfile
File metadata and controls
22 lines (18 loc) · 827 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM haproxy:1.9-alpine
LABEL maintainer="v.zorin@anchorfree.com"
ENV HAPROXY_HTTP_PORT 80
ENV HAPROXY_HTTPS_PORT 443
ENV HAPROXY_TIMEOUT_CONNECT "5000ms"
ENV HAPROXY_TIMEOUT_SERVER "10000ms"
ENV HAPROXY_TIMEOUT_CLIENT "15000ms"
ENV HAPROXY_STATS_TIMEOUT "2m"
ENV HAPROXY_METRICS_PORT 9101
ENV HAPROXY_STATS_REFRESH_INTERVAL 5
RUN apk add --no-cache lua5.3-ossl lua5.3-inspect ca-certificates openssl && mkdir -p /etc/haproxy/system /etc/haproxy/user /etc/haproxy/conf /etc/haproxy/lualibs
COPY lua/*.lua /etc/haproxy/system/
COPY lua/libs /etc/haproxy/lualibs/
COPY cfg/builtin.cfg /etc/haproxy/
ENV LUA_PATH "/usr/share/lua/5.3/?.lua;/etc/haproxy/lualibs/?/?.lua;;"
ENV LUA_CPATH "/usr/share/lua/5.3/?.so;;"
ENTRYPOINT ["/usr/local/sbin/haproxy"]
CMD [ "-W", "-f", "/etc/haproxy/builtin.cfg", "--", "/etc/haproxy/conf" ]