feat: init

This commit is contained in:
2025-03-24 20:56:09 +07:00
parent 517ebf7148
commit 4c78f06ca1
2 changed files with 42 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
version: '3'
services:
netdata:
image: netdata/netdata
container_name: netdata
pid: host
network_mode: host
restart: unless-stopped
cap_add:
- SYS_PTRACE
- SYS_ADMIN
security_opt:
- apparmor:unconfined
volumes:
- netdataconfig:/etc/netdata
- netdatalib:/var/lib/netdata
- netdatacache:/var/cache/netdata
- /:/host/root:ro,rslave
- /etc/passwd:/host/etc/passwd:ro
- /etc/group:/host/etc/group:ro
- /etc/localtime:/etc/localtime:ro
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- /etc/os-release:/host/etc/os-release:ro
- /var/log:/host/var/log:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
- /run/dbus:/run/dbus:ro
volumes:
netdataconfig:
netdatalib:
netdatacache:
+10
View File
@@ -0,0 +1,10 @@
[global]
run_as_user = netdata
web_mode = static-threaded
memory mode = save
[health]
enabled = yes
[logging]
type = none