2020-08-07 23:00:19 +00:00
|
|
|
---
|
|
|
|
version: '3'
|
|
|
|
|
|
|
|
services:
|
|
|
|
dockron:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: ./Dockerfile.multi-stage
|
|
|
|
command: ["-watch", "10s", "-debug"]
|
|
|
|
volumes:
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
|
|
|
|
2020-08-16 21:46:35 +00:00
|
|
|
start_echoer:
|
2020-08-07 23:00:19 +00:00
|
|
|
image: busybox:latest
|
|
|
|
command: ["date"]
|
|
|
|
labels:
|
|
|
|
# Execute every minute
|
|
|
|
- 'dockron.schedule=* * * * *'
|
2020-08-16 21:46:35 +00:00
|
|
|
|
|
|
|
exec_echoer:
|
|
|
|
image: busybox:latest
|
|
|
|
command: sh -c "date > /out && tail -f /out"
|
|
|
|
labels:
|
|
|
|
# Execute every minute
|
|
|
|
- 'dockron.date.schedule=* * * * *'
|
|
|
|
- 'dockron.date.command=date >> /out'
|