diff --git a/crontab.yaml b/crontab.yaml new file mode 100644 index 0000000..59697aa --- /dev/null +++ b/crontab.yaml @@ -0,0 +1,14 @@ +faktory: tcp://faktory:7419 +jobs: + - job: test + schedule: "@every 30s" + args: + - test + - job: test + schedule: 5 * * * * + args: + - 1 + - 2 + retries: 1 + queue: default + priority: 5 diff --git a/docker-compose.yml b/docker-compose.yml index 38cbe5d..da35999 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -24,5 +24,10 @@ services: - "7420:7420" volumes: - ./tmp/faktory:/var/lib/faktory - - + faktory-cron: + image: cdrx/faktory-cron + command: "./faktory-cron -config /crontab.yaml" + environment: + FAKTORY_URL: 'tcp://faktory:7419' + volumes: + - ./crontab.yaml:/crontab.yaml \ No newline at end of file