mirror of
https://github.com/QYG2297248353/appstore-dpanel
synced 2025-12-29 08:01:36 +08:00
Synced apps from source repository via GitHub Actions
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
# 数据持久化路径 [必填]
|
||||
SEAWEEDFS_ROOT_PATH=/home/seaweedfs
|
||||
|
||||
# WebUI 端口 [必填]
|
||||
PANEL_APP_PORT_HTTP=8333
|
||||
|
||||
# S3 监控端口 [必填]
|
||||
PANEL_APP_PORT_S3_METRICS=9327
|
||||
|
||||
# 集群服务端口 [必填]
|
||||
PANEL_APP_PORT_MASTER_SERVER=9333
|
||||
|
||||
# 集群通讯端口 [必填]
|
||||
PANEL_APP_PORT_MASTER_API=19333
|
||||
|
||||
# 集群监控端口 [必填]
|
||||
PANEL_APP_PORT_MASTER_METRICS=9324
|
||||
|
||||
# 存储服务端口 [必填]
|
||||
PANEL_APP_PORT_VOLUME_SERVER=8080
|
||||
|
||||
# 存储通讯端口 [必填]
|
||||
PANEL_APP_PORT_VOLUME_API=18080
|
||||
|
||||
# 存储监控端口 [必填]
|
||||
PANEL_APP_PORT_VOLUME_METRICS=9325
|
||||
|
||||
# 索引服务端口 [必填]
|
||||
PANEL_APP_PORT_FILER_SERVER=8888
|
||||
|
||||
# 索引通讯端口 [必填]
|
||||
PANEL_APP_PORT_FILER_API=18888
|
||||
|
||||
# 索引监控端口 [必填]
|
||||
PANEL_APP_PORT_FILER_METRICS=9326
|
||||
|
||||
# WebDAV 端口 [必填]
|
||||
PANEL_APP_PORT_WEBDAV=7333
|
||||
|
||||
# Prometheus 端口 [必填]
|
||||
PANEL_APP_PORT_METRICS=9090
|
||||
|
||||
# 自定义挂载目录 1
|
||||
CUSTOM_MOUNT_DIRECTORY_1=
|
||||
|
||||
# 自定义挂载目录 2
|
||||
CUSTOM_MOUNT_DIRECTORY_2=
|
||||
|
||||
# 自定义挂载目录 3
|
||||
CUSTOM_MOUNT_DIRECTORY_3=
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
global:
|
||||
scrape_interval: 30s
|
||||
scrape_timeout: 10s
|
||||
|
||||
scrape_configs:
|
||||
- job_name: services
|
||||
metrics_path: /metrics
|
||||
static_configs:
|
||||
- targets:
|
||||
- 'seaweedfs-prometheus:9090'
|
||||
- 'seaweedfs-master:9324'
|
||||
- 'seaweedfs-volume:9325'
|
||||
- 'seaweedfs-filer:9326'
|
||||
- 'seaweedfs-s3:9327'
|
||||
@@ -0,0 +1,134 @@
|
||||
additionalProperties:
|
||||
formFields:
|
||||
- default: "/home/seaweedfs"
|
||||
edit: true
|
||||
envKey: SEAWEEDFS_ROOT_PATH
|
||||
labelZh: 数据持久化路径
|
||||
labelEn: Data persistence path
|
||||
required: true
|
||||
type: text
|
||||
- default: 8333
|
||||
edit: true
|
||||
envKey: PANEL_APP_PORT_HTTP
|
||||
labelZh: WebUI 端口
|
||||
labelEn: WebUI port
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: 9327
|
||||
edit: true
|
||||
envKey: PANEL_APP_PORT_S3_METRICS
|
||||
labelZh: S3 监控端口
|
||||
labelEn: S3 Metrics port
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: 9333
|
||||
edit: true
|
||||
envKey: PANEL_APP_PORT_MASTER_SERVER
|
||||
labelZh: 集群服务端口
|
||||
labelEn: Cluster service port
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: 19333
|
||||
edit: true
|
||||
envKey: PANEL_APP_PORT_MASTER_API
|
||||
labelZh: 集群通讯端口
|
||||
labelEn: Cluster communication port
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: 9324
|
||||
edit: true
|
||||
envKey: PANEL_APP_PORT_MASTER_METRICS
|
||||
labelZh: 集群监控端口
|
||||
labelEn: Cluster Metrics port
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: 8080
|
||||
edit: true
|
||||
envKey: PANEL_APP_PORT_VOLUME_SERVER
|
||||
labelZh: 存储服务端口
|
||||
labelEn: Storage service port
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: 18080
|
||||
edit: true
|
||||
envKey: PANEL_APP_PORT_VOLUME_API
|
||||
labelZh: 存储通讯端口
|
||||
labelEn: Storage communication port
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: 9325
|
||||
edit: true
|
||||
envKey: PANEL_APP_PORT_VOLUME_METRICS
|
||||
labelZh: 存储监控端口
|
||||
labelEn: Storage Metrics port
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: 8888
|
||||
edit: true
|
||||
envKey: PANEL_APP_PORT_FILER_SERVER
|
||||
labelZh: 索引服务端口
|
||||
labelEn: Index service port
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: 18888
|
||||
edit: true
|
||||
envKey: PANEL_APP_PORT_FILER_API
|
||||
labelZh: 索引通讯端口
|
||||
labelEn: Index communication port
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: 9326
|
||||
edit: true
|
||||
envKey: PANEL_APP_PORT_FILER_METRICS
|
||||
labelZh: 索引监控端口
|
||||
labelEn: Index Metrics port
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: 7333
|
||||
edit: true
|
||||
envKey: PANEL_APP_PORT_WEBDAV
|
||||
labelZh: WebDAV 端口
|
||||
labelEn: WebDAV port
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: 9090
|
||||
edit: true
|
||||
envKey: PANEL_APP_PORT_METRICS
|
||||
labelZh: Prometheus 端口
|
||||
labelEn: Prometheus port
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: CUSTOM_MOUNT_DIRECTORY_1
|
||||
labelEn: Custom mount directory 1
|
||||
labelZh: 自定义挂载目录 1
|
||||
required: false
|
||||
type: text
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: CUSTOM_MOUNT_DIRECTORY_2
|
||||
labelEn: Custom mount directory 2
|
||||
labelZh: 自定义挂载目录 2
|
||||
required: false
|
||||
type: text
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: CUSTOM_MOUNT_DIRECTORY_3
|
||||
labelEn: Custom mount directory 3
|
||||
labelZh: 自定义挂载目录 3
|
||||
required: false
|
||||
type: text
|
||||
@@ -0,0 +1,137 @@
|
||||
networks:
|
||||
1panel-network:
|
||||
external: true
|
||||
seaweedfs-network: null
|
||||
services:
|
||||
seaweedfs-filer:
|
||||
command: filer -master="seaweedfs-master:9333" -ip.bind=0.0.0.0 -metricsPort=9326
|
||||
container_name: seaweedfs-filer
|
||||
depends_on:
|
||||
- seaweedfs-master
|
||||
- seaweedfs-volume
|
||||
env_file:
|
||||
- ./envs/global.env
|
||||
- .env
|
||||
environment:
|
||||
- TZ=Asia/Shanghai
|
||||
image: chrislusf/seaweedfs:3.99
|
||||
networks:
|
||||
- seaweedfs-network
|
||||
ports:
|
||||
- ${PANEL_APP_PORT_FILER_SERVER}:8888
|
||||
- ${PANEL_APP_PORT_FILER_API}:18888
|
||||
- ${PANEL_APP_PORT_FILER_METRICS}:9326
|
||||
restart: always
|
||||
stdin_open: true
|
||||
tty: true
|
||||
volumes:
|
||||
- ${CUSTOM_MOUNT_DIRECTORY_1:-./default_mount_1}:${CUSTOM_MOUNT_DIRECTORY_1:-/default_mount_1}
|
||||
- ${CUSTOM_MOUNT_DIRECTORY_2:-./default_mount_2}:${CUSTOM_MOUNT_DIRECTORY_2:-/default_mount_2}
|
||||
- ${CUSTOM_MOUNT_DIRECTORY_3:-./default_mount_3}:${CUSTOM_MOUNT_DIRECTORY_3:-/default_mount_3}
|
||||
seaweedfs-master:
|
||||
command: master -ip=master -ip.bind=0.0.0.0 -metricsPort=9324
|
||||
container_name: seaweedfs-master
|
||||
env_file:
|
||||
- ./envs/global.env
|
||||
- .env
|
||||
environment:
|
||||
- TZ=Asia/Shanghai
|
||||
image: chrislusf/seaweedfs:3.99
|
||||
networks:
|
||||
- seaweedfs-network
|
||||
ports:
|
||||
- ${PANEL_APP_PORT_MASTER_SERVER}:9333
|
||||
- ${PANEL_APP_PORT_MASTER_API}:19333
|
||||
- ${PANEL_APP_PORT_MASTER_METRICS}:9324
|
||||
restart: always
|
||||
volumes:
|
||||
- ${CUSTOM_MOUNT_DIRECTORY_1:-./default_mount_1}:${CUSTOM_MOUNT_DIRECTORY_1:-/default_mount_1}
|
||||
- ${CUSTOM_MOUNT_DIRECTORY_2:-./default_mount_2}:${CUSTOM_MOUNT_DIRECTORY_2:-/default_mount_2}
|
||||
- ${CUSTOM_MOUNT_DIRECTORY_3:-./default_mount_3}:${CUSTOM_MOUNT_DIRECTORY_3:-/default_mount_3}
|
||||
seaweedfs-prometheus:
|
||||
command: --web.enable-lifecycle --config.file=/etc/prometheus/prometheus.yml
|
||||
container_name: seaweedfs-prometheus
|
||||
depends_on:
|
||||
- seaweedfs-s3
|
||||
env_file:
|
||||
- ./envs/global.env
|
||||
- .env
|
||||
environment:
|
||||
- TZ=Asia/Shanghai
|
||||
image: prom/prometheus:v2.21.0
|
||||
networks:
|
||||
- seaweedfs-network
|
||||
ports:
|
||||
- ${PANEL_APP_PORT_METRICS}:9090
|
||||
restart: always
|
||||
volumes:
|
||||
- ${SEAWEEDFS_ROOT_PATH}/prometheus:/etc/prometheus
|
||||
seaweedfs-s3:
|
||||
command: s3 -filer="seaweedfs-filer:8888" -ip.bind=0.0.0.0 -metricsPort=9327
|
||||
container_name: seaweedfs
|
||||
depends_on:
|
||||
- seaweedfs-master
|
||||
- seaweedfs-volume
|
||||
- seaweedfs-filer
|
||||
env_file:
|
||||
- ./envs/global.env
|
||||
- .env
|
||||
environment:
|
||||
- TZ=Asia/Shanghai
|
||||
image: chrislusf/seaweedfs:3.99
|
||||
labels:
|
||||
createdBy: Apps
|
||||
networks:
|
||||
- seaweedfs-network
|
||||
ports:
|
||||
- ${PANEL_APP_PORT_HTTP}:8333
|
||||
- ${PANEL_APP_PORT_S3_METRICS}:9327
|
||||
restart: always
|
||||
volumes:
|
||||
- ${CUSTOM_MOUNT_DIRECTORY_1:-./default_mount_1}:${CUSTOM_MOUNT_DIRECTORY_1:-/default_mount_1}
|
||||
- ${CUSTOM_MOUNT_DIRECTORY_2:-./default_mount_2}:${CUSTOM_MOUNT_DIRECTORY_2:-/default_mount_2}
|
||||
- ${CUSTOM_MOUNT_DIRECTORY_3:-./default_mount_3}:${CUSTOM_MOUNT_DIRECTORY_3:-/default_mount_3}
|
||||
seaweedfs-volume:
|
||||
command: volume -mserver="seaweedfs-master:9333" -ip.bind=0.0.0.0 -port=8080 -metricsPort=9325
|
||||
container_name: seaweedfs-volume
|
||||
depends_on:
|
||||
- seaweedfs-master
|
||||
env_file:
|
||||
- ./envs/global.env
|
||||
- .env
|
||||
environment:
|
||||
- TZ=Asia/Shanghai
|
||||
image: chrislusf/seaweedfs:3.99
|
||||
networks:
|
||||
- seaweedfs-network
|
||||
ports:
|
||||
- ${PANEL_APP_PORT_VOLUME_SERVER}:8080
|
||||
- ${PANEL_APP_PORT_VOLUME_API}:18080
|
||||
- ${PANEL_APP_PORT_VOLUME_METRICS}:9325
|
||||
restart: always
|
||||
volumes:
|
||||
- ${CUSTOM_MOUNT_DIRECTORY_1:-./default_mount_1}:${CUSTOM_MOUNT_DIRECTORY_1:-/default_mount_1}
|
||||
- ${CUSTOM_MOUNT_DIRECTORY_2:-./default_mount_2}:${CUSTOM_MOUNT_DIRECTORY_2:-/default_mount_2}
|
||||
- ${CUSTOM_MOUNT_DIRECTORY_3:-./default_mount_3}:${CUSTOM_MOUNT_DIRECTORY_3:-/default_mount_3}
|
||||
seaweedfs-webdav:
|
||||
command: webdav -filer="seaweedfs-filer:8888"
|
||||
container_name: seaweedfs-webdav
|
||||
depends_on:
|
||||
- seaweedfs-master
|
||||
- seaweedfs-volume
|
||||
- seaweedfs-filer
|
||||
env_file:
|
||||
- ./envs/global.env
|
||||
- .env
|
||||
environment:
|
||||
- TZ=Asia/Shanghai
|
||||
image: chrislusf/seaweedfs:3.99
|
||||
networks:
|
||||
- seaweedfs-network
|
||||
ports:
|
||||
- ${PANEL_APP_PORT_WEBDAV}:7333
|
||||
restart: always
|
||||
volumes:
|
||||
- ${CUSTOM_MOUNT_DIRECTORY_1:-./default_mount_1}:${CUSTOM_MOUNT_DIRECTORY_1:-/default_mount_1}
|
||||
- ${CUSTOM_MOUNT_DIRECTORY_2:-./default_mount_2}:${CUSTOM_MOUNT_DIRECTORY_2:-/default_mount_2}
|
||||
- ${CUSTOM_MOUNT_DIRECTORY_3:-./default_mount_3}:${CUSTOM_MOUNT_DIRECTORY_3:-/default_mount_3}
|
||||
@@ -0,0 +1,2 @@
|
||||
# copyright© 2024 XinJiang Ms Studio
|
||||
ENV_FILE=.env
|
||||
@@ -0,0 +1,2 @@
|
||||
# copyright© 2024 XinJiang Ms Studio
|
||||
TZ=Asia/Shanghai
|
||||
@@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -f .env ]; then
|
||||
source .env
|
||||
|
||||
# setup-1 add default values
|
||||
CURRENT_DIR=$(pwd)
|
||||
sed -i '/^ENV_FILE=/d' .env
|
||||
sed -i '/^GLOBAL_ENV_FILE=/d' .env
|
||||
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
|
||||
echo "GLOBAL_ENV_FILE=${CURRENT_DIR}/envs/global.env" >> .env
|
||||
|
||||
if [ ! -d $SEAWEEDFS_ROOT_PATH/prometheus ]; then
|
||||
mkdir -p $SEAWEEDFS_ROOT_PATH/prometheus
|
||||
fi
|
||||
cp -rn ./config/* $SEAWEEDFS_ROOT_PATH/prometheus/
|
||||
|
||||
echo "Check Finish."
|
||||
|
||||
else
|
||||
echo "Error: .env file not found."
|
||||
fi
|
||||
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -f .env ]; then
|
||||
source .env
|
||||
|
||||
echo "Check Finish."
|
||||
|
||||
else
|
||||
echo "Error: .env file not found."
|
||||
fi
|
||||
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -f .env ]; then
|
||||
source .env
|
||||
|
||||
# setup-1 add default values
|
||||
CURRENT_DIR=$(pwd)
|
||||
sed -i '/^ENV_FILE=/d' .env
|
||||
sed -i '/^GLOBAL_ENV_FILE=/d' .env
|
||||
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
|
||||
echo "GLOBAL_ENV_FILE=${CURRENT_DIR}/envs/global.env" >> .env
|
||||
|
||||
echo "Check Finish."
|
||||
|
||||
else
|
||||
echo "Error: .env file not found."
|
||||
fi
|
||||
Reference in New Issue
Block a user