# Version 2 is the latest that is supported by docker-compose in # Ubuntu Xenial. version: '2' services: haproxy: restart: always image: docker.io/library/haproxy:latest network_mode: host volumes: - /dev/log:/dev/log - /var/haproxy/etc:/usr/local/etc/haproxy - /var/haproxy/run:/var/haproxy/run haproxy-statsd: restart: always image: docker.io/opendevorg/haproxy-statsd:latest network_mode: host volumes: - /var/haproxy/run:/var/haproxy/run environment: STATSD_HOST: graphite.opendev.org STATSD_PORT: 8125