Netdata 使用docker-compose容器化部署,并使用NGINX进行访问控制
version: '3' services: netdata: image: netdata/netdata container_name: netdata hostname: example.com # set to fqdn of host restart: unless-stopped cap_add: - SYS_PTRACE security_opt: - apparmor:unconfined volumes: - netdataconfig:/etc/netdata - netdatalib:/var/lib/netdata - netdatacache:/var/cache/netdata - /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 nginx: image: harbor.xiaocaicai.com/public/nginx-basic-auth-proxy:latest ports: - 19999:80 environment: - BASIC_AUTH_USERNAME=admin - BASIC_AUTH_PASSWORD=admin - PROXY_PASS=http://netdata:19999/ volumes: netdataconfig: netdatalib: netdatacache: