Synced apps from source repository via GitHub Actions

This commit is contained in:
QYG2297248353
2025-12-03 21:20:18 +00:00
parent 3f63702387
commit 1468fccb8a
33 changed files with 4 additions and 4 deletions
+12
View File
@@ -0,0 +1,12 @@
# 网络模式 [必填]
NETWORK_MODE=host
# 数据持久化路径 [必填]
HOMARR_ROOT_PATH=/home/homarr
# WebUI 端口 [必填]
PANEL_APP_PORT_HTTP=7575
# 密钥 [必填]
SECRET_ENCRYPTION_KEY=7f0f511ce7898929066688ee9146aa509293a6c58a345ea0ea7270e7b34ff32d
+40
View File
@@ -0,0 +1,40 @@
additionalProperties:
formFields:
- default: "host"
edit: true
envKey: NETWORK_MODE
labelEn: Drive path
labelZh: 网络模式
required: true
type: select
values:
- label: 主机网络模式
value: "host"
- label: 桥接网络模式
value: "bridge"
- label: 无网络模式
value: "none"
- label: 1panel-network
value: "1panel-network"
- default: "/home/homarr"
edit: true
envKey: HOMARR_ROOT_PATH
labelZh: 数据持久化路径
labelEn: Data persistence path
required: true
type: text
- default: 7575
edit: true
envKey: PANEL_APP_PORT_HTTP
labelZh: WebUI 端口
labelEn: WebUI port
required: true
rule: paramPort
type: number
- default: "7f0f511ce7898929066688ee9146aa509293a6c58a345ea0ea7270e7b34ff32d"
edit: true
envKey: SECRET_ENCRYPTION_KEY
labelZh: 密钥
labelEn: Secret key
required: true
type: text
+19
View File
@@ -0,0 +1,19 @@
networks:
1panel-network:
external: true
services:
homarr:
container_name: homarr
env_file:
- ./envs/global.env
- .env
image: ghcr.io/homarr-labs/homarr:v1.45.1
labels:
createdBy: Apps
network_mode: ${NETWORK_MODE}
ports:
- ${PANEL_APP_PORT_HTTP}:7575
restart: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ${HOMARR_ROOT_PATH}/appdata:/appdata
+2
View File
@@ -0,0 +1,2 @@
# copyright© 2024 XinJiang Ms Studio
ENV_FILE=.env
+2
View File
@@ -0,0 +1,2 @@
# copyright© 2024 XinJiang Ms Studio
TZ=Asia/Shanghai
+17
View File
@@ -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
+10
View File
@@ -0,0 +1,10 @@
#!/bin/bash
if [ -f .env ]; then
source .env
echo "Check Finish."
else
echo "Error: .env file not found."
fi
+17
View File
@@ -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