-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
21 lines (17 loc) · 877 Bytes
/
Dockerfile
File metadata and controls
21 lines (17 loc) · 877 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM dockyard.armada.sh/microservice_python3
MAINTAINER Cerebro <cerebro@ganymede.eu>
RUN add-apt-repository -y ppa:vbernat/haproxy-1.9
RUN apt-get update -y
RUN apt-get install -y haproxy socat
RUN python3 -m pip install -U bottle armada
RUN sed -i 's/ENABLED=0/ENABLED=1/' /etc/default/haproxy
ADD . /opt/main-haproxy
ADD ./supervisor/* /etc/supervisor/conf.d/
RUN cp /opt/main-haproxy/src/initial_haproxy.cfg /etc/haproxy/haproxy.cfg
RUN cp /opt/main-haproxy/errors/* /etc/haproxy/errors/
# Port exposed by HAProxy system service. It should be published to the host at port 80.
# Internal web service main_haproxy.py, used for hosting index page, uploading new haproxy.cfg and health-checks
# via REST API is running on port 8080 inside the container, however main-haproxy uses it as default backend so port 80
# can be used for uploading as well.
EXPOSE 80
EXPOSE 8001