chore(deps): update jiangrui1994/cloudsaver docker tag to v0.6.5 (#3534)
This commit is contained in:
6
apps/cloudsaver/0.6.5/config/env.example
Normal file
6
apps/cloudsaver/0.6.5/config/env.example
Normal file
@@ -0,0 +1,6 @@
|
||||
# JWT配置
|
||||
JWT_SECRET=${JWT_SECRET}
|
||||
|
||||
# Telegram配置
|
||||
TELEGRAM_BASE_URL=https://t.me/s
|
||||
|
||||
33
apps/cloudsaver/0.6.5/data.yml
Normal file
33
apps/cloudsaver/0.6.5/data.yml
Normal file
@@ -0,0 +1,33 @@
|
||||
additionalProperties:
|
||||
formFields:
|
||||
- default: "./data"
|
||||
edit: true
|
||||
envKey: CLOUDSAVER_ROOT_PATH
|
||||
labelZh: 数据持久化路径
|
||||
labelEn: Data persistence path
|
||||
label:
|
||||
en: Data persistence path
|
||||
zh: 数据持久化路径
|
||||
required: true
|
||||
type: text
|
||||
- default: 8008
|
||||
edit: true
|
||||
envKey: PANEL_APP_PORT_HTTP
|
||||
labelZh: WebUI 端口
|
||||
labelEn: WebUI port
|
||||
label:
|
||||
en: WebUI port
|
||||
zh: WebUI 端口
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: JWT_SECRET
|
||||
labelZh: JWT 密钥
|
||||
labelEn: JWT secret
|
||||
label:
|
||||
en: JWT secret
|
||||
zh: JWT 密钥
|
||||
required: true
|
||||
type: text
|
||||
27
apps/cloudsaver/0.6.5/docker-compose.yml
Normal file
27
apps/cloudsaver/0.6.5/docker-compose.yml
Normal file
@@ -0,0 +1,27 @@
|
||||
networks:
|
||||
1panel-network:
|
||||
external: true
|
||||
|
||||
services:
|
||||
cloudsaver:
|
||||
image: jiangrui1994/cloudsaver:0.6.5
|
||||
container_name: ${CONTAINER_NAME}
|
||||
labels:
|
||||
createdBy: "Apps"
|
||||
restart: always
|
||||
networks:
|
||||
- 1panel-network
|
||||
ports:
|
||||
- ${PANEL_APP_PORT_HTTP}:8008
|
||||
volumes:
|
||||
- ${CLOUDSAVER_ROOT_PATH}/data:/app/data
|
||||
- ${CLOUDSAVER_ROOT_PATH}/config:/app/config
|
||||
environment:
|
||||
- TZ=Asia/Shanghai
|
||||
healthcheck:
|
||||
test: >
|
||||
node -e "require('http').get('http://localhost:8008/health', res => { const allowed = [200, 204, 301, 302, 304]; process.exit(allowed.includes(res.statusCode) ? 0 : 1); }).on('error', () => process.exit(0));"
|
||||
interval: 30s
|
||||
timeout: 3s
|
||||
start_period: 5s
|
||||
retries: 3
|
||||
17
apps/cloudsaver/0.6.5/scripts/init.sh
Normal file
17
apps/cloudsaver/0.6.5/scripts/init.sh
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -f .env ]; then
|
||||
source .env
|
||||
|
||||
CONFIG_DIR="$CLOUDSAVER_ROOT_PATH/config"
|
||||
mkdir -p "$CONFIG_DIR"
|
||||
|
||||
CONFIG_FILE="$CONFIG_DIR/env"
|
||||
cp ./config/env.example $CONFIG_FILE
|
||||
sed -i "s/JWT_SECRET=.*/JWT_SECRET=$JWT_SECRET/" $CONFIG_FILE
|
||||
|
||||
echo "Check Finish."
|
||||
|
||||
else
|
||||
echo "Error: .env file not found."
|
||||
fi
|
||||
Reference in New Issue
Block a user