Skip to content

Instantly share code, notes, and snippets.

@moosh3
Created February 20, 2019 20:49
Show Gist options
  • Save moosh3/d434affb8238c6fa3d964952f81ebf11 to your computer and use it in GitHub Desktop.
Save moosh3/d434affb8238c6fa3d964952f81ebf11 to your computer and use it in GitHub Desktop.
netdata caddy
version: '3'
volumes:
caddy:
services:
caddy:
image: abiosoft/caddy
ports:
- 80:80
- 443:443
volumes:
- /opt/Caddyfile:/etc/Caddyfile
- caddy:/root/.caddy
environment:
ACME_AGREE: 'true'
netdata:
restart: always
hostname: netdata.example.org
image: netdata/netdata
cap_add:
- SYS_PTRACE
security_opt:
- apparmor:unconfined
volumes:
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment