Skip to content

Commit

Permalink
feat: add cron job for syncing mirror
Browse files Browse the repository at this point in the history
  • Loading branch information
chesedo committed Dec 14, 2022
1 parent 24657bc commit 00cf17f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 00cf17f

Please sign in to comment.