1
0

feat:添加dockge到列表

This commit is contained in:
okxlin
2023-12-14 21:23:31 +08:00
parent c0079da30d
commit 2b50ada882
9 changed files with 287 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
CONTAINER_NAME="dockge"
PANEL_APP_PORT_HTTP="40186"
DATA_PATH="./data"
STACKS_PATH="/opt/dockge/stacks"

View File

@@ -0,0 +1,24 @@
additionalProperties:
formFields:
- default: 40186
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: /opt/dockge/stacks
edit: true
envKey: STACKS_PATH
labelEn: compose yml folder path (Absolute Path)
labelZh: compose 编排文件路径 (绝对路径)
required: true
type: text

View File

@@ -0,0 +1,23 @@
version: '3'
services:
dockge:
container_name: ${CONTAINER_NAME}
restart: always
networks:
- 1panel-network
ports:
- "${PANEL_APP_PORT_HTTP}:5001"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ${DATA_PATH}:/app/data
- ${STACKS_PATH}:/opt/stacks
# - /root/.docker/:/root/.docker
environment:
- DOCKGE_STACKS_DIR=/opt/stacks
image: louislam/dockge:latest
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true