version: '3' services: haproxy: build: ./haproxy depends_on: - container1 - container2 ports: - "127.0.0.1:8080:8080" container1: build: ./server container2: build: ./server