Skip to content

Instantly share code, notes, and snippets.

@Leopere
Created January 22, 2019 22:26
Show Gist options
  • Save Leopere/d5555d39f8ab2b00b514843ccbd2e322 to your computer and use it in GitHub Desktop.
Save Leopere/d5555d39f8ab2b00b514843ccbd2e322 to your computer and use it in GitHub Desktop.
This won't work out of the box but shows you a baseline.
version: "3"
networks:
traefik:
external: true
services:
netdata:
image: titpetric/netdata
labels:
# https://docs.traefik.io/user-guide/docker-and-lets-encrypt/
- "traefik.backend=netdata"
- "traefik.docker.network=traefik"
- "traefik.frontend.rule=Host:netdata.example.com"
- "traefik.expose=true"
- "traefik.port=19999"
hostname: netdata.example.com
cap_add:
- SYS_PTRACE
volumes:
- /proc:/host/proc:ro
- /sys:/host/sys:ro
expose:
- 19999
restart: always
networks:
traefik:
ipv4_address: 10.5.0.25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment