Add cronjob Mode For The Docker Container

fixes #907
This commit is contained in:
Zicklag
2019-04-09 15:57:38 +00:00
parent a41ba79119
commit 3895c86812
3 changed files with 29 additions and 0 deletions

View File

@@ -26,6 +26,16 @@ services:
depends_on:
- master
- volume
cronjob:
image: chrislusf/seaweedfs # use a remote image
command: 'cronjob'
environment:
# Run re-replication every 2 minutes
CRON_SCHEDULE: '*/2 * * * * *' # Default: '*/5 * * * * *'
WEED_MASTER: master:9333 # Default: localhost:9333
depends_on:
- master
- volume
s3:
image: chrislusf/seaweedfs # use a remote image
ports: