services:
  fail:
    image: alpine
    init: true
    command: sleep infinity
    healthcheck:
      test: "false"
      interval: 1s
      retries: 3
  depends:
    image: alpine
    init: true
    command: sleep infinity
    depends_on:
      fail:
        condition: service_healthy
