version: "3" services: haproxy: image: haproxy:alpine ports: - "HAPROXY_PORT:HAPROXY_PORT" - "HAPROXY_STATS_PORT:HAPROXY_STATS_PORT" volumes: - ./config/haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg:ro networks: proxy: external: true