homelab/netdata/docker-compose.yml
2023-05-26 13:20:35 -05:00

36 lines
1.1 KiB
YAML

version: "3"
services:
netdata:
image: netdata/netdata
container_name: netdata
# ports:
# - 19999:19999
cap_add:
- SYS_PTRACE
networks:
- proxy
security_opt:
- apparmor:unconfined
volumes:
- /etc/passwd:/host/etc/passwd:ro
- /etc/os-release:/host/etc/os-release:ro
- /etc/group:/host/etc/group:ro
- /proc:/host/proc:ro
- /sys:/host/sys:ro
labels:
- "traefik.enable=true"
- "traefik.http.routers.netdata.entrypoints=http"
- "traefik.http.routers.netdata.rule=Host(`netdata.${URL}`)"
- "traefik.http.middlewares.netdata-https-redirect.redirectscheme.scheme=https"
- "traefik.http.routers.netdata.middlewares=netdata-https-redirect"
- "traefik.http.routers.netdata-secure.entrypoints=https"
- "traefik.http.routers.netdata-secure.rule=Host(`netdata.local.waylonwalker.com`)"
- "traefik.http.routers.netdata-secure.tls=true"
- "traefik.http.routers.netdata-secure.service=netdata"
- "traefik.http.services.netdata.loadbalancer.server.port=19999"
- "traefik.docker.network=proxy"
networks:
proxy:
external: true