-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdocker-compose.yml.example
38 lines (37 loc) · 1.22 KB
/
docker-compose.yml.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
version: '3'
services:
netdata:
image: netdata/netdata:stable
container_name: netdata
hostname: <insert server FQDN here>
ports:
- 19999:19999
restart: unless-stopped
cap_add:
- SYS_PTRACE
security_opt:
- apparmor:unconfined
environment:
- DOCKER_USER=root
volumes:
# Netdata
- ./netdataconfig/netdata:/etc/netdata:ro
- netdatalib:/var/lib/netdata
- netdatacache:/var/cache/netdata
# For Netdata to work in Docker
- /etc/passwd:/host/etc/passwd:ro
- /etc/group:/host/etc/group:ro
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- /etc/os-release:/host/etc/os-release:ro
# NanoNodeGraphics
- ./NanoNodeGraphics/src/nanonode.chart.py:/usr/libexec/netdata/python.d/nanonode.chart.py:ro
- ./NanoNodeGraphics/src/nanonode.conf:/usr/lib/netdata/conf.d/python.d/nanonode.conf:ro
- ./NanoNodeGraphics/src/nano.html:/usr/share/netdata/web/nano.html:ro
- ./NanoNodeGraphics/src/nano.css:/usr/share/netdata/web/nano.css:ro
# If running on a Windows host, remove the extra_hosts setting since it's there by default
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
netdatalib:
netdatacache: