sysdig-cloud: Cut logs at 100mb and make into a system service

This commit is contained in:
Josh Reichardt
2016-09-13 10:26:47 -07:00
parent 3dccc339f1
commit 23d9e32225
3 changed files with 59 additions and 3 deletions
@@ -0,0 +1,22 @@
sysdig-agent:
container_name: sysdig-agent
privileged: true
image: sysdig/agent:${VERSION}
net: "host"
pid: "host"
environment:
ACCESS_KEY: ${SDC_ACCESS_KEY}
TAGS: "${SDC_TAGS}"
ADDITIONAL_CONF: "${SDC_ADDITIONAL_CONF}"
log_opt:
max-size: 100mb
volumes:
- /var/run/docker.sock:/host/var/run/docker.sock
- /dev:/host/dev
- /proc:/host/proc:ro
- /boot:/host/boot:ro
- /lib/modules:/host/lib/modules:ro
- /usr:/host/usr:ro
labels:
io.rancher.scheduler.global: true
io.rancher.scheduler.affinity:host_label_ne: ${HOST_EXCLUDE_LABEL}