Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add cron job for syncing mirror #537

Merged
merged 1 commit into from
Dec 14, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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