/ansidockhapr

ansible starting a dockerized haproxy serving a static response

ansidockhapr

ansible starting a dockerized haproxy serving a static response

how to start

  1. adjust inventory to your needs (or use a different one alltogether)
  2. run playbook: ansible-playbook -i inventory start.yml
  3. the target host should now have configuration files present at /tmp/haproxy, which will be bind-mounted into the docker container.
  4. the target host should begin serving http requests at port 8081 shortly after
  5. open browser, connect to http://<docker host>:8081/hello