精简提交历史记录
This commit is contained in:
26
apps/woodpecker/mysql-latest/.env.sample
Normal file
26
apps/woodpecker/mysql-latest/.env.sample
Normal file
@@ -0,0 +1,26 @@
|
||||
CONTAINER_NAME="woodpecker"
|
||||
PANEL_APP_PORT_HTTP="40122"
|
||||
REGISTER_SWITCH="false"
|
||||
WOODPECKER_AGENT_SECRET=""
|
||||
DATA_PATH="./data"
|
||||
WOODPECKER_HOST="http://ci.example.com"
|
||||
GITEA_ENABLE_SWITCH="false"
|
||||
GITHUB_ENABLE_SWITCH="true"
|
||||
GITLAB_ENABLE_SWITCH="false"
|
||||
BITBUCKET_ENABLE_SWITCH="false"
|
||||
WOODPECKER_BITBUCKET_CLIENT=""
|
||||
WOODPECKER_BITBUCKET_SECRET=""
|
||||
WOODPECKER_GITEA_CLIENT=""
|
||||
WOODPECKER_GITEA_SECRET=""
|
||||
WOODPECKER_GITEA_URL="https://try.gitea.io"
|
||||
WOODPECKER_GITHUB_CLIENT=""
|
||||
WOODPECKER_GITHUB_SECRET=""
|
||||
WOODPECKER_GITHUB_URL="https://github.com"
|
||||
WOODPECKER_GITLAB_CLIENT=""
|
||||
WOODPECKER_GITLAB_SECRET=""
|
||||
WOODPECKER_GITLAB_URL="https://gitlab.com"
|
||||
PANEL_DB_HOST="127.0.0.1"
|
||||
WOODPECKER_DB_PORT="3306"
|
||||
PANEL_DB_NAME="woodpecker"
|
||||
PANEL_DB_USER="woodpecker"
|
||||
PANEL_DB_USER_PASSWORD="MyDBPWD_brls9UwcRasl"
|
||||
191
apps/woodpecker/mysql-latest/data.yml
Normal file
191
apps/woodpecker/mysql-latest/data.yml
Normal file
@@ -0,0 +1,191 @@
|
||||
additionalProperties:
|
||||
formFields:
|
||||
- child:
|
||||
default: ""
|
||||
envKey: PANEL_DB_HOST
|
||||
labelEn: Database Service
|
||||
labelZh: 数据库服务
|
||||
required: true
|
||||
type: service
|
||||
default: mysql
|
||||
labelEn: Database Service
|
||||
labelZh: 数据库服务
|
||||
params:
|
||||
- envKey: WOODPECKER_DB_PORT
|
||||
key: mysql
|
||||
type: param
|
||||
value: "3306"
|
||||
#- envKey: WOODPECKER_DB_PORT
|
||||
# key: postgresql
|
||||
# type: param
|
||||
# value: "5432"
|
||||
required: true
|
||||
type: apps
|
||||
values:
|
||||
- label: MySQL
|
||||
value: mysql
|
||||
- default: woodpecker
|
||||
envKey: PANEL_DB_NAME
|
||||
labelEn: Database
|
||||
labelZh: 数据库名
|
||||
random: true
|
||||
required: true
|
||||
rule: paramCommon
|
||||
type: text
|
||||
- default: woodpecker
|
||||
envKey: PANEL_DB_USER
|
||||
labelEn: User
|
||||
labelZh: 数据库用户
|
||||
random: true
|
||||
required: true
|
||||
rule: paramCommon
|
||||
type: text
|
||||
- default: woodpecker
|
||||
envKey: PANEL_DB_USER_PASSWORD
|
||||
labelEn: Password
|
||||
labelZh: 数据库用户密码
|
||||
random: true
|
||||
required: true
|
||||
rule: paramComplexity
|
||||
type: password
|
||||
- default: 40122
|
||||
edit: true
|
||||
envKey: PANEL_APP_PORT_HTTP
|
||||
labelEn: Port
|
||||
labelZh: 端口
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: ./data
|
||||
edit: true
|
||||
envKey: DATA_PATH
|
||||
labelEn: Data folder path
|
||||
labelZh: 数据文件夹路径
|
||||
required: true
|
||||
type: text
|
||||
- default: "false"
|
||||
edit: true
|
||||
envKey: REGISTER_SWITCH
|
||||
labelEn: Enable register (true or false)
|
||||
labelZh: 启用注册(true/false)
|
||||
required: true
|
||||
type: text
|
||||
- default: http://ci.example.com
|
||||
edit: true
|
||||
envKey: WOODPECKER_HOST
|
||||
labelEn: External URL
|
||||
labelZh: 外部访问地址
|
||||
required: true
|
||||
type: text
|
||||
- default: ''
|
||||
edit: true
|
||||
envKey: WOODPECKER_AGENT_SECRET
|
||||
labelEn: Github Agent Secret Vaule
|
||||
labelZh: Github Agent Secret 值
|
||||
required: true
|
||||
type: text
|
||||
- default: "true"
|
||||
edit: true
|
||||
envKey: GITHUB_ENABLE_SWITCH
|
||||
labelEn: Enable Github (true or false)
|
||||
labelZh: 启用Github(true/false)
|
||||
required: true
|
||||
type: text
|
||||
- default: https://github.com
|
||||
edit: true
|
||||
envKey: WOODPECKER_GITHUB_URL
|
||||
labelEn: Github URL
|
||||
labelZh: Github地址
|
||||
required: false
|
||||
type: text
|
||||
- default: ''
|
||||
edit: true
|
||||
envKey: WOODPECKER_GITHUB_CLIENT
|
||||
labelEn: Github CLIENT Vaule
|
||||
labelZh: Github CLIENT 值
|
||||
required: false
|
||||
type: text
|
||||
- default: ''
|
||||
edit: true
|
||||
envKey: WOODPECKER_GITHUB_SECRET
|
||||
labelEn: Github SECRET Vaule
|
||||
labelZh: Github SECRET 值
|
||||
required: false
|
||||
type: text
|
||||
- default: "false"
|
||||
edit: true
|
||||
envKey: GITEA_ENABLE_SWITCH
|
||||
labelEn: Enable Gitea (true or false)
|
||||
labelZh: 启用Gitea(true/false)
|
||||
required: true
|
||||
type: text
|
||||
- default: https://try.gitea.io
|
||||
edit: true
|
||||
envKey: WOODPECKER_GITEA_URL
|
||||
labelEn: Gitea URL
|
||||
labelZh: Gitea地址
|
||||
required: false
|
||||
type: text
|
||||
- default: ''
|
||||
edit: true
|
||||
envKey: WOODPECKER_GITEA_CLIENT
|
||||
labelEn: Gitea CLIENT Vaule
|
||||
labelZh: Gitea CLIENT 值
|
||||
required: false
|
||||
type: text
|
||||
- default: ''
|
||||
edit: true
|
||||
envKey: WOODPECKER_GITEA_SECRET
|
||||
labelEn: Gitea SECRET Vaule
|
||||
labelZh: Gitea SECRET 值
|
||||
required: false
|
||||
type: text
|
||||
- default: "false"
|
||||
edit: true
|
||||
envKey: GITLAB_ENABLE_SWITCH
|
||||
labelEn: Enable GitLab (true or false)
|
||||
labelZh: 启用GitLab (true/false)
|
||||
required: true
|
||||
type: text
|
||||
- default: https://gitlab.com
|
||||
edit: true
|
||||
envKey: WOODPECKER_GITLAB_URL
|
||||
labelEn: GitLab URL
|
||||
labelZh: GitLab 地址
|
||||
required: false
|
||||
type: text
|
||||
- default: ''
|
||||
edit: true
|
||||
envKey: WOODPECKER_GITLAB_CLIENT
|
||||
labelEn: GitLab CLIENT Vaule
|
||||
labelZh: GitLab CLIENT 值
|
||||
required: false
|
||||
type: text
|
||||
- default: ''
|
||||
edit: true
|
||||
envKey: WOODPECKER_GITLAB_SECRET
|
||||
labelEn: GitLab SECRET Vaule
|
||||
labelZh: GitLab SECRET 值
|
||||
required: false
|
||||
type: text
|
||||
- default: "false"
|
||||
edit: true
|
||||
envKey: BITBUCKET_ENABLE_SWITCH
|
||||
labelEn: Enable Bitbucket (true or false)
|
||||
labelZh: 启用 Bitbucket (true/false)
|
||||
required: true
|
||||
type: text
|
||||
- default: ''
|
||||
edit: true
|
||||
envKey: WOODPECKER_BITBUCKET_CLIENT
|
||||
labelEn: Bitbucket CLIENT Value
|
||||
labelZh: Bitbucket CLIENT 值
|
||||
required: false
|
||||
type: text
|
||||
- default: ''
|
||||
edit: true
|
||||
envKey: WOODPECKER_BITBUCKET_SECRET
|
||||
labelEn: Bitbucket SECRET Value
|
||||
labelZh: Bitbucket SECRET 值
|
||||
required: false
|
||||
type: text
|
||||
68
apps/woodpecker/mysql-latest/docker-compose.yml
Normal file
68
apps/woodpecker/mysql-latest/docker-compose.yml
Normal file
@@ -0,0 +1,68 @@
|
||||
version: '3'
|
||||
services:
|
||||
woodpecker-server:
|
||||
container_name: ${CONTAINER_NAME}-server
|
||||
restart: always
|
||||
networks:
|
||||
- 1panel-network
|
||||
ports:
|
||||
- ${PANEL_APP_PORT_HTTP}:8000
|
||||
volumes:
|
||||
- ${DATA_PATH}/server/woodpecker:/var/lib/woodpecker/
|
||||
environment:
|
||||
- WOODPECKER_OPEN=${REGISTER_SWITCH}
|
||||
- WOODPECKER_HOST=${WOODPECKER_HOST}
|
||||
- WOODPECKER_AGENT_SECRET=${WOODPECKER_AGENT_SECRET}
|
||||
# GitHub
|
||||
- WOODPECKER_GITHUB=${GITHUB_ENABLE_SWITCH}
|
||||
- WOODPECKER_GITHUB_URL=${WOODPECKER_GITHUB_URL}
|
||||
- WOODPECKER_GITHUB_CLIENT=${WOODPECKER_GITHUB_CLIENT}
|
||||
- WOODPECKER_GITHUB_SECRET=${WOODPECKER_GITHUB_SECRET}
|
||||
# Gitea / Forgejo
|
||||
- WOODPECKER_GITEA=${GITEA_ENABLE_SWITCH}
|
||||
- WOODPECKER_GITEA_URL=${WOODPECKER_GITEA_URL}
|
||||
- WOODPECKER_GITEA_CLIENT=${WOODPECKER_GITEA_CLIENT}
|
||||
- WOODPECKER_GITEA_SECRET=${WOODPECKER_GITEA_SECRET}
|
||||
- WOODPECKER_GITEA_SKIP_VERIFY=true
|
||||
# GitLab
|
||||
- WOODPECKER_GITLAB=${GITLAB_ENABLE_SWITCH}
|
||||
- WOODPECKER_GITLAB_URL=${WOODPECKER_GITLAB_URL}
|
||||
- WOODPECKER_GITLAB_CLIENT=${WOODPECKER_GITLAB_CLIENT}
|
||||
- WOODPECKER_GITLAB_SECRET=${WOODPECKER_GITLAB_SECRET}
|
||||
- WOODPECKER_GITLAB_SKIP_VERIFY=true
|
||||
# Bitbucket
|
||||
- WOODPECKER_BITBUCKET=${BITBUCKET_ENABLE_SWITCH}
|
||||
- WOODPECKER_BITBUCKET_CLIENT=${WOODPECKER_BITBUCKET_CLIENT}
|
||||
- WOODPECKER_BITBUCKET_SECRET=${WOODPECKER_BITBUCKET_SECRET}
|
||||
#
|
||||
# MySQL
|
||||
- WOODPECKER_DATABASE_DRIVER=mysql
|
||||
- WOODPECKER_DATABASE_DATASOURCE=${PANEL_DB_USER}:${PANEL_DB_USER_PASSWORD}@tcp(${PANEL_DB_HOST}:${WOODPECKER_DB_PORT})/${PANEL_DB_NAME}?parseTime=true
|
||||
# Postgres
|
||||
#- WOODPECKER_DATABASE_DRIVER=postgres
|
||||
#- WOODPECKER_DATABASE_DATASOURCE=postgres://root:password@1.2.3.4:5432/postgres?sslmode=disable
|
||||
image: woodpeckerci/woodpecker-server:latest
|
||||
labels:
|
||||
createdBy: "Apps"
|
||||
|
||||
woodpecker-agent:
|
||||
container_name: ${CONTAINER_NAME}-agent
|
||||
restart: always
|
||||
networks:
|
||||
- 1panel-network
|
||||
command: agent
|
||||
depends_on:
|
||||
- woodpecker-server
|
||||
volumes:
|
||||
- ${DATA_PATH}/agent/woodpecker:/etc/woodpecker
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
environment:
|
||||
- WOODPECKER_SERVER=woodpecker-server:9000
|
||||
- WOODPECKER_AGENT_SECRET=${WOODPECKER_AGENT_SECRET}
|
||||
image: woodpeckerci/woodpecker-agent:latest
|
||||
labels:
|
||||
createdBy: "Apps"
|
||||
|
||||
networks:
|
||||
1panel-network:
|
||||
external: true
|
||||
Reference in New Issue
Block a user