新增应用 MetaTube 内存模式

Signed-off-by: Meng Sen <qyg2297248353@gmail.com>
This commit is contained in:
2025-07-28 10:32:18 +08:00
parent a339bc85ff
commit c70631a7a8
10 changed files with 218 additions and 0 deletions
@@ -0,0 +1,47 @@
additionalProperties:
formFields:
- default: "1panel-network"
edit: true
envKey: NETWORK_MODE
labelZh: 网络模式
labelEn: Network mode
required: true
type: select
values:
- label: 主机网络模式
value: "host"
- label: 桥接网络模式
value: "bridge"
- label: 无网络模式
value: "none"
- label: 1panel-network
value: "1panel-network"
- default: 8080
edit: true
envKey: PANEL_APP_PORT_HTTP
labelZh: WebUI 端口
labelEn: WebUI port
required: true
rule: paramPort
type: number
- default: ""
edit: true
envKey: TOKEN
labelZh: 访问令牌
labelEn: Access Token
required: true
type: password
- default: "1m"
edit: true
envKey: REQUEST_TIMEOUT
labelZh: 请求超时时间
labelEn: Request Timeout
required: true
type: text
- default: ""
edit: true
envKey: HTTP_PROXY
labelZh: 网络代理 (HTTP/Socket5)
labelEn: Network Proxy (HTTP/Socket5)
required: false
type: text
@@ -0,0 +1,21 @@
networks:
1panel-network:
external: true
services:
metatube-server:
image: ghcr.io/metatube-community/metatube-server:1.3.1
container_name: ${CONTAINER_NAME}
labels:
createdBy: "Apps"
restart: always
network_mode: ${NETWORK_MODE}
ports:
- ${PANEL_APP_PORT_HTTP}:${PANEL_APP_PORT_HTTP}
env_file:
- ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env}
- ${ENV_FILE:-/etc/1panel/envs/default.env}
environment:
- HTTPS_PROXY=${HTTP_PROXY}
- DB_AUTO_MIGRATE=true
- PORT=${PANEL_APP_PORT_HTTP}
@@ -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,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
@@ -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