community-catalog/templates/janitor/2/docker-compose.yml
sshipway 5d12e5ebdd Add updated Janitor template using official meltwater/docker-cleanup
container image rather than the temporary patched version
Some fixes to the README documentation to help clarify behaviour and fix
typos.
2016-03-29 21:21:13 +00:00

19 lines
477 B
YAML

cleanup:
image: meltwater/docker-cleanup:1.6.0
environment:
CLEAN_PERIOD: ${FREQUENCY}
DELAY_TIME: "900"
KEEP_IMAGES: "${KEEP}"
KEEP_CONTAINERS: "${KEEPC}"
LOOP: "true"
DEBUG: "0"
labels:
io.rancher.scheduler.global: "true"
io.rancher.scheduler.affinity:host_label_ne: "${EXCLUDE_LABEL}"
privileged: true
tty: false
stdin_open: false
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /var/lib/docker:/var/lib/docker