Skip to content

Commit

Permalink
feat: add cron job for syncing mirror (#537)
Browse files Browse the repository at this point in the history
  • Loading branch information
chesedo authored Dec 14, 2022
1 parent 84dd5fa commit 0afa129
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.sync-mirror.command: panamax sync /mirror
deck-chores.sync-mirror.interval: 5 minutes
deck-chores.sync-mirror.max: 1
deploy:
placement:
constraints:
- node.hostname==controller
deck-chores:
image: funkyfuture/deck-chores:1
restart: unless-stopped
environment:
TIMEZONE: UTC
volumes:
- /var/run/docker.sock:/var/run/docker.sock
deploy:
placement:
constraints:
Expand Down

0 comments on commit 0afa129

Please sign in to comment.