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