Synced apps from source repository via GitHub Actions

This commit is contained in:
QYG2297248353
2025-09-29 06:33:34 +00:00
parent 47f6821f28
commit 3351f27ca8
25 changed files with 3 additions and 3 deletions
+24
View File
@@ -0,0 +1,24 @@
# 数据持久化路径 [必填]
ONEDEV_ROOT_PATH=/home/onedev
# WebUI 端口 [必填]
PANEL_APP_PORT_HTTP=6610
# SSH 端口 [必填]
PANEL_APP_PORT_SSH=6611
# 管理员帐户
INITIAL_USER=root
# 管理员密码
INITIAL_PASSWORD=
# 管理员电子邮件
INITIAL_EMAIL=
# 服务端地址
INITIAL_SERVER_URL=
# SSH 服务端地址
INITIAL_SSH_ROOT_URL=
+64
View File
@@ -0,0 +1,64 @@
additionalProperties:
formFields:
- default: "/home/onedev"
edit: true
envKey: ONEDEV_ROOT_PATH
labelZh: 数据持久化路径
labelEn: Data persistence path
required: true
type: text
- default: 6610
edit: true
envKey: PANEL_APP_PORT_HTTP
labelZh: WebUI 端口
labelEn: WebUI Port
required: true
rule: paramPort
type: number
- default: 6611
edit: true
envKey: PANEL_APP_PORT_SSH
labelZh: SSH 端口
labelEn: SSH Port
required: true
rule: paramPort
type: number
- default: "root"
edit: true
envKey: INITIAL_USER
labelZh: 管理员帐户
labelEn: Admin Username
required: false
rule: paramCommon
type: text
- default: ""
edit: true
envKey: INITIAL_PASSWORD
labelZh: 管理员密码
labelEn: Admin Password
required: false
random: true
rule: paramComplexity
type: password
- default: ""
edit: true
envKey: INITIAL_EMAIL
labelZh: 管理员电子邮件
labelEn: Admin Email
required: false
type: text
- default: ""
edit: true
envKey: INITIAL_SERVER_URL
labelZh: 服务端地址
labelEn: Server URL
required: false
rule: paramExtUrl
type: text
- default: ""
edit: true
envKey: INITIAL_SSH_ROOT_URL
labelZh: SSH 服务端地址
labelEn: SSH Server URL
required: false
type: text
+28
View File
@@ -0,0 +1,28 @@
networks:
1panel-network:
external: true
services:
onedev:
container_name: onedev
env_file:
- ./envs/global.env
- ./envs/onedev.env
- .env
environment:
- initial_user=${INITIAL_USER}
- initial_password=${INITIAL_PASSWORD}
- initial_email=${INITIAL_EMAIL}
- initial_server_url=${INITIAL_SERVER_URL}
- initial_ssh_root_url=${INITIAL_SSH_ROOT_URL}
image: 1dev/server:13.0.5
labels:
createdBy: Apps
networks:
- 1panel-network
ports:
- ${PANEL_APP_PORT_HTTP}:6610
- ${PANEL_APP_PORT_SSH}:6611
restart: always
volumes:
- ${ONEDEV_ROOT_PATH}/data:/opt/onedev
- /var/run/docker.sock:/var/run/docker.sock
+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
+29
View File
@@ -0,0 +1,29 @@
# 外部数据库支持配置
# PostgreSQL
# hibernate_dialect=io.onedev.server.persistence.PostgreSQLDialect
# hibernate_connection_driver_class=org.postgresql.Driver
# hibernate_connection_url=jdbc:postgresql://localhost:5432/onedev
# hibernate_connection_username=postgres
# hibernate_connection_password=postgres
# MySQL
# hibernate_dialect=org.hibernate.dialect.MySQL5InnoDBDialect
# hibernate_connection_driver_class=com.mysql.cj.jdbc.Driver
# hibernate_connection_url=jdbc:mysql://localhost:3306/onedev?serverTimezone=UTC&allowPublicKeyRetrieval=true&useSSL=false&disableMariaDbDriver=true
# hibernate_connection_username=root
# hibernate_connection_password=root
# MariaDB
# hibernate_dialect=org.hibernate.dialect.MySQL5InnoDBDialect
# hibernate_connection_driver_class=org.mariadb.jdbc.Driver
# hibernate_connection_url=jdbc:mariadb://localhost:3306/onedev
# hibernate_connection_username=root
# hibernate_connection_password=root
# MS SQL Server
# hibernate_dialect=org.hibernate.dialect.SQLServer2012Dialect
# hibernate_connection_driver_class=com.microsoft.sqlserver.jdbc.SQLServerDriver
# hibernate_connection_url=jdbc:sqlserver://localhost:1433;databaseName=onedev
# hibernate_connection_username=sa
# hibernate_connection_password=sa
+19
View File
@@ -0,0 +1,19 @@
#!/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
sed -i '/^APP_ENV_FILE=/d' .env
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
echo "GLOBAL_ENV_FILE=${CURRENT_DIR}/envs/global.env" >> .env
echo "APP_ENV_FILE=${CURRENT_DIR}/envs/onedev.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
+19
View File
@@ -0,0 +1,19 @@
#!/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
sed -i '/^APP_ENV_FILE=/d' .env
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
echo "GLOBAL_ENV_FILE=${CURRENT_DIR}/envs/global.env" >> .env
echo "APP_ENV_FILE=${CURRENT_DIR}/envs/onedev.env" >> .env
echo "Check Finish."
else
echo "Error: .env file not found."
fi