mirror of
https://github.com/QYG2297248353/appstore-1panel.git
synced 2024-11-10 21:16:55 +08:00
perf: Jenkins 特权模式可选项 (#245)
* perf: Jenkins 特权模式可选项 * perf: docker in docker 模式
This commit is contained in:
parent
5cd4710004
commit
4a70b84230
@ -1,5 +1,24 @@
|
||||
additionalProperties:
|
||||
formFields:
|
||||
- default: "true"
|
||||
disabled: true
|
||||
envKey: PRIVILEGED
|
||||
labelEn: Privileged
|
||||
labelZh: 特权模式
|
||||
required: true
|
||||
type: select
|
||||
values:
|
||||
- label: 开启
|
||||
value: "true"
|
||||
- label: 关闭
|
||||
value: "false"
|
||||
- default: /usr/bin/docker
|
||||
edit: true
|
||||
envKey: DOCKER_BINARY
|
||||
labelEn: Docker Binary
|
||||
labelZh: Docker二进制文件
|
||||
required: true
|
||||
type: text
|
||||
- default: 8080
|
||||
envKey: PANEL_APP_PORT_HTTP
|
||||
labelEn: Port
|
||||
|
@ -4,14 +4,14 @@ services:
|
||||
container_name: ${CONTAINER_NAME}
|
||||
image: jenkins/jenkins:2.416
|
||||
restart: always
|
||||
privileged: true
|
||||
privileged: ${PRIVILEGED}
|
||||
user: root
|
||||
ports:
|
||||
- ${PANEL_APP_PORT_HTTP}:8080
|
||||
volumes:
|
||||
- ./jenkins:/var/jenkins_home
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- /usr/local/bin/docker:/usr/local/bin/docker
|
||||
- ${DOCKER_BINARY}:${DOCKER_BINARY}
|
||||
networks:
|
||||
- 1panel-network
|
||||
labels:
|
||||
|
Loading…
Reference in New Issue
Block a user