services: foo: image: bash command: echo "foo" depends_on: bar: required: false condition: service_healthy bar: image: nginx:alpine profiles: [not-required]