mirror of
https://github.com/arch3rPro/1Panel-Appstore.git
synced 2026-04-19 19:37:11 +08:00
Remake Repository
This commit is contained in:
4
apps/netdata/2.2.6/.env.sample
Normal file
4
apps/netdata/2.2.6/.env.sample
Normal file
@@ -0,0 +1,4 @@
|
||||
CONTAINER_NAME="netdata"
|
||||
DOCKER_SOCK_PATH="/var/run/docker.sock"
|
||||
HOSTNAME="netdata"
|
||||
PANEL_APP_PORT_HTTP=19999
|
||||
24
apps/netdata/2.2.6/data.yml
Normal file
24
apps/netdata/2.2.6/data.yml
Normal file
@@ -0,0 +1,24 @@
|
||||
additionalProperties:
|
||||
formFields:
|
||||
- default: "19999"
|
||||
disabled: true
|
||||
envKey: PANEL_APP_PORT_HTTP
|
||||
labelEn: Port
|
||||
labelZh: 端口
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: "netdata"
|
||||
edit: true
|
||||
envKey: HOSTNAME
|
||||
labelEn: Hostname
|
||||
labelZh: 主机名
|
||||
required: true
|
||||
type: text
|
||||
- default: "/var/run/docker.sock"
|
||||
edit: true
|
||||
envKey: DOCKER_SOCK_PATH
|
||||
labelEn: Docker Socket Path
|
||||
labelZh: Docker 套接字路径
|
||||
required: true
|
||||
type: text
|
||||
27
apps/netdata/2.2.6/docker-compose.yml
Normal file
27
apps/netdata/2.2.6/docker-compose.yml
Normal file
@@ -0,0 +1,27 @@
|
||||
services:
|
||||
netdata:
|
||||
image: "netdata/netdata:latest"
|
||||
container_name: ${CONTAINER_NAME}
|
||||
restart: always
|
||||
network_mode: host
|
||||
hostname: ${HOSTNAME}
|
||||
cap_add:
|
||||
- SYS_PTRACE
|
||||
- SYS_ADMIN
|
||||
security_opt:
|
||||
- apparmor:unconfined
|
||||
volumes:
|
||||
- ./data/netdataconfig:/etc/netdata
|
||||
- ./data/netdatalib:/var/lib/netdata
|
||||
- ./data/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
|
||||
- ${DOCKER_SOCK_PATH}:/var/run/docker.sock:ro
|
||||
labels:
|
||||
createdBy: "Apps"
|
||||
Reference in New Issue
Block a user