services:
foo:
image: alpine
command: "echo hello"
bar:
command: "echo world"
depends_on:
condition: "service_completed_successfully"