Skip to content

Instantly share code, notes, and snippets.

@andreareginato
Last active August 29, 2015 14:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andreareginato/6e50254feb2d57865b73 to your computer and use it in GitHub Desktop.
Save andreareginato/6e50254feb2d57865b73 to your computer and use it in GitHub Desktop.
# Container to start from with a working HAProxy definition
FROM dockerfile/haproxy
MAINTAINER Andrea Reginato <andrea.reginato@gmail.com>
# Add personalized configuration
ADD haproxy.cfg /etc/haproxy/haproxy.cfg
# Add restart commands
ADD restart.bash /haproxy-restart
# Define working directory
WORKDIR /etc/haproxy
# Define default command
CMD ["bash", "/haproxy-start"]
# Expose ports
EXPOSE 80
EXPOSE 1883
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment