services:
haproxy:
restart: on-failure:3
build:
context: .
image: haproxy
network_mode: "host"
volumes:
- ./haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg:ro