Add Janitor container definition

This commit is contained in:
Steve Shipway
2016-03-04 01:45:37 +00:00
parent ffc90ce0c5
commit aa7337cfeb
5 changed files with 94 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
cleanup:
image: meltwater/docker-cleanup:1.4.0
environment:
CLEAN_PERIOD: ${FREQUENCY}
DELAY_TIME: "900"
KEEP_IMAGES: ${KEEP}
labels:
io.rancher.scheduler.global: "true"
io.rancher.scheduler.affinity:host_label_ne: ${EXCLUDE_LABEL}
privileged: true
tty: true
stdin_open: true
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /var/lib/docker:/var/lib/docker