diff --git a/docker-compose.yml b/docker-compose.yml index e8c3f0bd44..791a0b6cdd 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -150,6 +150,21 @@ services: volumes: - panamax-crates-vol:/mirror/crates - panamax-io-index-vol:/mirror/crates.io-index + labels: + deck-chores.daily_job.command: panamax sync /mirror + deck-chores.daily_job.interval: 5 minutes + deck-chores.daily_job.max: 1 + deploy: + placement: + constraints: + - node.hostname==controller + deck-chores: + image: funkyfuture/deck-chores:1 + restart: unless-stopped + environment: + TIMEZONE: etc/UTC + volumes: + - /var/run/docker.sock:/var/run/docker.sock deploy: placement: constraints: