Permalink
Branch: master
Find file Copy path
7d1e3c3 Feb 4, 2019
1 contributor

Users who have contributed to this file

28 lines (24 sloc) 494 Bytes
version: '3.7'
x-default-opts:
&default-opts
logging:
options:
max-size: "1m"
# driver: "gelf"
# options:
# gelf-address: "udp://127.0.0.1:5000"
services:
image-prune:
<<: *default-opts
image: docker
command: sh -c "while true; do docker image prune -af; sleep 86400; done"
networks:
- bridge
volumes:
- /var/run/docker.sock:/var/run/docker.sock
deploy:
mode: global
networks:
bridge:
external: true
name: bridge