services: haproxy: image: haproxy:3.1 restart: always ports: - 80:80/tcp - 443:443/tcp volumes: - ./haproxy.conf:/usr/local/etc/haproxy/haproxy.cfg:ro