File: compose.yaml

package info (click to toggle)
docker-compose 2.32.4-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,300 kB
  • sloc: makefile: 113; sh: 2
file content (19 lines) | stat: -rw-r--r-- 335 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
services:
  running:
    image: alpine
    command: sleep infinity
    init: true

  exit:
    image: alpine
    command: /bin/true
    depends_on:
      running:
        condition: service_started

  fail:
    image: alpine
    command: sh -c "return 111"
    depends_on:
      exit:
        condition: service_completed_successfully