minitor/examples/docker-checks/docker-compose.yml

18 lines
328 B
YAML
Raw Normal View History

2019-05-31 23:38:00 +00:00
version: '2'
services:
minitor:
build: .
volumes:
- ./config.yml:/app/config.yml
- /var/run/docker.sock:/var/run/docker.sock:ro
failure:
container_name: failure
image: busybox
command: "sh -c 'exit 1'"
success:
container_name: success
image: busybox
command: "sh -c 'exit 0'"