diff --git a/apps/smokeping/2.8.2/.env.sample b/apps/smokeping/2.8.2/.env.sample new file mode 100644 index 00000000..fd64021a --- /dev/null +++ b/apps/smokeping/2.8.2/.env.sample @@ -0,0 +1,6 @@ +CONTAINER_NAME="smokeping" +PANEL_APP_PORT_HTTP="40213" +DATA_PATH="./data" +MASTER_URL="http://:40213/smokeping/" +SHARED_SECRET="" +TIME_ZONE="Asia/Shanghai" diff --git a/apps/smokeping/2.8.2/data.yml b/apps/smokeping/2.8.2/data.yml new file mode 100644 index 00000000..786fc633 --- /dev/null +++ b/apps/smokeping/2.8.2/data.yml @@ -0,0 +1,39 @@ +additionalProperties: + formFields: + - default: 40213 + edit: true + envKey: PANEL_APP_PORT_HTTP + labelEn: Port + labelZh: 端口 + required: true + rule: paramPort + type: number + - default: ./data + edit: true + envKey: DATA_PATH + labelEn: Data folder path + labelZh: 数据文件夹路径 + required: true + type: text + - default: http://:40213/smokeping/ + edit: true + envKey: MASTER_URL + labelEn: Master url + labelZh: 外部访问地址 + required: true + rule: paramHttp + type: text + - default: Asia/Shanghai + edit: true + envKey: TIME_ZONE + labelEn: Time zone + labelZh: 时区 + required: true + type: text + - default: '' + edit: true + envKey: SHARED_SECRET + labelEn: Master shared secret (slave mode) + labelZh: 主共享密钥 (从属模式) + required: false + type: text diff --git a/apps/smokeping/2.8.2/docker-compose.yml b/apps/smokeping/2.8.2/docker-compose.yml new file mode 100644 index 00000000..f3fd3e88 --- /dev/null +++ b/apps/smokeping/2.8.2/docker-compose.yml @@ -0,0 +1,26 @@ +version: '3' +services: + smokeping: + container_name: ${CONTAINER_NAME} + restart: always + networks: + - 1panel-network + ports: + - "${PANEL_APP_PORT_HTTP}:80" + image: linuxserver/smokeping:2.8.2 + environment: + - PUID=1000 + - PGID=1000 + - TZ=${TIME_ZONE} + - MASTER_URL=${MASTER_URL} + - SHARED_SECRET=${SHARED_SECRET} + - CACHE_DIR=/tmp + volumes: + - ${DATA_PATH}/config:/config + - ${DATA_PATH}/data:/data + labels: + createdBy: "Apps" + +networks: + 1panel-network: + external: true diff --git a/apps/smokeping/README.md b/apps/smokeping/README.md new file mode 100644 index 00000000..c02146c0 --- /dev/null +++ b/apps/smokeping/README.md @@ -0,0 +1,20 @@ +[Smokeping](https://oss.oetiker.ch/smokeping/) keeps track of your network latency. For a full example of what this application is capable of visit [UCDavis](http://smokeping.ucdavis.edu/cgi-bin/smokeping.fcgi). + +## Application Setup + +* Once running, the URL will be `http:///smokeping/smokeping.cgi`. For example, a full URL might look like `https://smokeping.yourdomain.com/smokeping/smokeping.cgi`. +* Basic setup: edit the `Targets` file to ping the hosts you're interested in to match the format found there. +* Wait 10 minutes. +* To reload the configuration without restarting the container, run `docker exec smokeping pkill -f -HUP '/usr/bin/perl /usr/s?bin/smokeping(_cgi)?'`, where `smokeping` is the container ID. +* To restart the container, run `docker restart smokeping`, where `smokeping` is the container ID. +* Note that the default `Targets` file includes items that may or may not work. These are simply to provide examples of configuration. +* Slave setup: modify the `Targets`, `Slaves`, and `smokeping_secrets` files on the master host, per [the documentation](https://manpages.ubuntu.com/manpages/trusty/en/man7/smokeping_master_slave.7.html). + +> 中文说明 +* 运行后,URL 将是 `http:///smokeping/smokeping.cgi`。例如,完整的 URL 可能是 `https://smokeping.yourdomain.com/smokeping/smokeping.cgi`。 +* 基本设置:编辑 `Targets` 文件,ping 你感兴趣的主机,使其与文件中的格式一致。 +* 等待 10 分钟。 +* 要在不重启容器的情况下重新加载配置,请运行 `docker exec smokeping pkill -f -HUP '/usr/bin/perl /usr/s?bin/smokeping(_cgi)?'` ,其中 `smokeping` 是容器 ID。 +* 要重新启动容器,请运行 `docker restart smokeping`,其中 `smokeping` 是容器 ID。 +* 请注意,默认的 `Targets` 文件包含的项目可能有效,也可能无效。这些只是为了提供配置示例。 +* 从属设置:根据 [文档](https://manpages.ubuntu.com/manpages/trusty/en/man7/smokeping_master_slave.7.html),修改主主机上的 `Targets`、`Slaves` 和 `smokeping_secrets` 文件。 diff --git a/apps/smokeping/data.yml b/apps/smokeping/data.yml new file mode 100644 index 00000000..4d9e88a7 --- /dev/null +++ b/apps/smokeping/data.yml @@ -0,0 +1,14 @@ +additionalProperties: + key: smokeping + name: Smokeping + tags: + - Tool + shortDescZh: 一个豪华的延迟测量工具 + shortDescEn: A deluxe latency measurement tool + type: tool + crossVersionUpdate: true + limit: 0 + recommend: 0 + website: https://oss.oetiker.ch/smokeping/ + github: https://github.com/linuxserver/docker-smokeping + document: https://oss.oetiker.ch/smokeping/doc/index.en.html \ No newline at end of file diff --git a/apps/smokeping/latest/.env.sample b/apps/smokeping/latest/.env.sample new file mode 100644 index 00000000..fd64021a --- /dev/null +++ b/apps/smokeping/latest/.env.sample @@ -0,0 +1,6 @@ +CONTAINER_NAME="smokeping" +PANEL_APP_PORT_HTTP="40213" +DATA_PATH="./data" +MASTER_URL="http://:40213/smokeping/" +SHARED_SECRET="" +TIME_ZONE="Asia/Shanghai" diff --git a/apps/smokeping/latest/data.yml b/apps/smokeping/latest/data.yml new file mode 100644 index 00000000..786fc633 --- /dev/null +++ b/apps/smokeping/latest/data.yml @@ -0,0 +1,39 @@ +additionalProperties: + formFields: + - default: 40213 + edit: true + envKey: PANEL_APP_PORT_HTTP + labelEn: Port + labelZh: 端口 + required: true + rule: paramPort + type: number + - default: ./data + edit: true + envKey: DATA_PATH + labelEn: Data folder path + labelZh: 数据文件夹路径 + required: true + type: text + - default: http://:40213/smokeping/ + edit: true + envKey: MASTER_URL + labelEn: Master url + labelZh: 外部访问地址 + required: true + rule: paramHttp + type: text + - default: Asia/Shanghai + edit: true + envKey: TIME_ZONE + labelEn: Time zone + labelZh: 时区 + required: true + type: text + - default: '' + edit: true + envKey: SHARED_SECRET + labelEn: Master shared secret (slave mode) + labelZh: 主共享密钥 (从属模式) + required: false + type: text diff --git a/apps/smokeping/latest/docker-compose.yml b/apps/smokeping/latest/docker-compose.yml new file mode 100644 index 00000000..254d00c1 --- /dev/null +++ b/apps/smokeping/latest/docker-compose.yml @@ -0,0 +1,26 @@ +version: '3' +services: + smokeping: + container_name: ${CONTAINER_NAME} + restart: always + networks: + - 1panel-network + ports: + - "${PANEL_APP_PORT_HTTP}:80" + image: linuxserver/smokeping:latest + environment: + - PUID=1000 + - PGID=1000 + - TZ=${TIME_ZONE} + - MASTER_URL=${MASTER_URL} + - SHARED_SECRET=${SHARED_SECRET} + - CACHE_DIR=/tmp + volumes: + - ${DATA_PATH}/config:/config + - ${DATA_PATH}/data:/data + labels: + createdBy: "Apps" + +networks: + 1panel-network: + external: true diff --git a/apps/smokeping/logo.png b/apps/smokeping/logo.png new file mode 100644 index 00000000..44a1a842 Binary files /dev/null and b/apps/smokeping/logo.png differ