services:
  simple:
    image: alpine
    command: sh -c "sleep 5"
  another:
    image: alpine
    command: sh -c "sleep 0.1 && echo world && /bin/false"
    deploy:
      restart_policy:
        condition: "on-failure"
        max_attempts: 2
