services: haproxy-build: image: "haproxy:${HAPROXY_VERSION}" profiles: ["build"] build: context: "build-context/haproxy" dockerfile: Dockerfile args: EXAMPLE_ARG_FOR_DOCKERFILE: "${EXAMPLE_ARG_FROM_ENV_FILE}" HAPROXY_VERSION: "${HAPROXY_VERSION}"