-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbeekeeper.yml
More file actions
68 lines (61 loc) · 1.64 KB
/
beekeeper.yml
File metadata and controls
68 lines (61 loc) · 1.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
---
services:
cron:
image: crazymax/swarm-cronjob:1
environment:
- LOG_JSON=true
- LOG_LEVEL=debug
- TZ=America/Los_Angeles
volumes:
- /var/run/docker.sock:/var/run/docker.sock
cron_job_exits_nonzero:
image: alpine:latest
command: sh -c 'echo "Cronjob failed..." && false'
deploy:
labels:
- beekeeper.include_in_cronjob_report=true
- beekeeper.watchers=#some-channel,@some-user
- swarm.cronjob.enable=true
- swarm.cronjob.schedule=*/10 * * * * *
restart_policy:
condition: none
cron_job_exits_zero:
image: alpine:latest
command: /bin/true
deploy:
labels:
- beekeeper.include_in_cronjob_report=false
- beekeeper.watchers=#some-channel,@some-user
- swarm.cronjob.enable=true
- swarm.cronjob.schedule=*/10 * * * * *
restart_policy:
condition: none
cron_job_unscheduleable:
image: alpine:this-tag-does-not-exist
command: /bin/true
deploy:
labels:
- beekeeper.watchers=#some-channel,@some-user
- swarm.cronjob.enable=true
- swarm.cronjob.schedule=*/10 * * * * *
restart_policy:
condition: none
fail_fixed_labels:
image: alpine:latest
command: sh -c 'echo "some logs..." && false'
deploy:
labels:
beekeeper.watchers: "#some-channel,@some-user"
restart_policy:
condition: on-failure
delay: 5m
fail_no_labels:
image: alpine:latest
command: sh -c 'echo "some logs..." && false'
deploy:
restart_policy:
condition: none
networks:
default:
external: true
name: host