mirror of
https://github.com/QYG2297248353/appstore-1panel.git
synced 2026-06-16 01:02:14 +08:00
chore(deps): update commitgo/gitea-ee docker tag to v22.3.1 (#2345)
* chore(deps): update commitgo/gitea-ee docker tag to v22.3.1 * Update app version [skip ci] --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: github-action update-app-version <githubaction@githubaction.com>
This commit is contained in:
co-authored by
renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
github-action update-app-version
parent
1949401ab5
commit
cd22daa936
Executable
+56
@@ -0,0 +1,56 @@
|
||||
additionalProperties:
|
||||
formFields:
|
||||
- default: mysql
|
||||
envKey: PANEL_DB_TYPE
|
||||
labelEn: Database Service
|
||||
labelZh: 数据库服务
|
||||
required: true
|
||||
type: apps
|
||||
child:
|
||||
default: ""
|
||||
envKey: PANEL_DB_HOST
|
||||
required: true
|
||||
type: service
|
||||
values:
|
||||
- label: MySQL
|
||||
value: mysql
|
||||
- label: PostgreSQL
|
||||
value: postgres
|
||||
- default: gitea
|
||||
envKey: PANEL_DB_NAME
|
||||
labelEn: Database
|
||||
labelZh: 数据库名
|
||||
random: true
|
||||
required: true
|
||||
rule: paramCommon
|
||||
type: text
|
||||
- default: gitea
|
||||
envKey: PANEL_DB_USER
|
||||
labelEn: User
|
||||
labelZh: 数据库用户
|
||||
random: true
|
||||
required: true
|
||||
rule: paramCommon
|
||||
type: text
|
||||
- default: gitea
|
||||
envKey: PANEL_DB_USER_PASSWORD
|
||||
labelEn: Password
|
||||
labelZh: 数据库用户密码
|
||||
random: true
|
||||
required: true
|
||||
rule: paramComplexity
|
||||
type: password
|
||||
- default: 3000
|
||||
envKey: PANEL_APP_PORT_HTTP
|
||||
labelEn: Port
|
||||
labelZh: HTTP 端口
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: 222
|
||||
envKey: PANEL_APP_PORT_SSH
|
||||
labelEn: Port
|
||||
labelZh: SSH 端口
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
@@ -0,0 +1,27 @@
|
||||
services:
|
||||
gitea:
|
||||
image: commitgo/gitea-ee:22.3.1
|
||||
container_name: ${CONTAINER_NAME}
|
||||
environment:
|
||||
- USER_UID=1000
|
||||
- USER_GID=1000
|
||||
- GITEA__database__DB_TYPE=${PANEL_DB_TYPE}
|
||||
- GITEA__database__HOST=${PANEL_DB_HOST}:${PANEL_DB_PORT}
|
||||
- GITEA__database__NAME=${PANEL_DB_NAME}
|
||||
- GITEA__database__USER=${PANEL_DB_USER}
|
||||
- GITEA__database__PASSWD=${PANEL_DB_USER_PASSWORD}
|
||||
restart: always
|
||||
networks:
|
||||
- 1panel-network
|
||||
volumes:
|
||||
- ./data:/data
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
ports:
|
||||
- "${PANEL_APP_PORT_HTTP}:3000"
|
||||
- "${PANEL_APP_PORT_SSH}:22"
|
||||
labels:
|
||||
createdBy: "Apps"
|
||||
networks:
|
||||
1panel-network:
|
||||
external: true
|
||||
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [[ -f ./.env ]]; then
|
||||
if grep -q "PANEL_DB_TYPE" ./.env; then
|
||||
echo "PANEL_DB_TYPE 已存在"
|
||||
else
|
||||
echo 'PANEL_DB_TYPE="mysql"' >> ./.env
|
||||
fi
|
||||
else
|
||||
echo ".env 文件不存在"
|
||||
fi
|
||||
Reference in New Issue
Block a user