feat(docker-socket-proxy): 添加 docker-socket-proxy 应用支持

This commit is contained in:
arch3rPro
2025-12-16 02:24:53 +08:00
parent 39ba5fb80a
commit 594fd20704
9 changed files with 934 additions and 0 deletions

View File

@@ -0,0 +1,330 @@
additionalProperties:
formFields:
- default: "2375"
envKey: PANEL_APP_PORT_HTTP
required: true
type: number
labelEn: Port
labelZh: 端口
edit: true
rule: paramPort
- default: "0"
envKey: ALLOW_START
required: false
type: select
labelEn: ALLOW_START
labelZh: ALLOW_START允许启动
values:
- label: 0-禁止
value: "0"
- label: 1-允许
value: "1"
- default: "0"
envKey: ALLOW_STOP
required: false
type: select
labelEn: ALLOW_STOP
labelZh: ALLOW_STOP允许停止
values:
- label: 0-禁止
value: "0"
- label: 1-允许
value: "1"
- default: "0"
envKey: ALLOW_RESTARTS
required: false
type: select
labelEn: ALLOW_RESTARTS
labelZh: ALLOW_RESTARTS允许重启
values:
- label: 0-禁止
value: "0"
- label: 1-允许
value: "1"
- default: "0"
envKey: AUTH
required: false
type: select
labelEn: AUTH
labelZh: AUTH认证
values:
- label: 0-关闭
value: "0"
- label: 1-开启
value: "1"
- default: "0"
envKey: BUILD
required: false
type: select
labelEn: BUILD
labelZh: BUILD构建
values:
- label: 0-禁止
value: "0"
- label: 1-允许
value: "1"
- default: "0"
envKey: COMMIT
required: false
type: select
labelEn: COMMIT
labelZh: COMMIT提交
values:
- label: 0-禁止
value: "0"
- label: 1-允许
value: "1"
- default: "0"
envKey: CONFIGS
required: false
type: select
labelEn: CONFIGS
labelZh: CONFIGS配置
values:
- label: 0-禁止
value: "0"
- label: 1-允许
value: "1"
- default: "0"
envKey: CONTAINERS
required: false
type: select
labelEn: CONTAINERS
labelZh: CONTAINERS容器
values:
- label: 0-禁止
value: "0"
- label: 1-允许
value: "1"
- default: "0"
envKey: DISABLE_IPV6
required: false
type: select
labelEn: DISABLE_IPV6
labelZh: DISABLE_IPV6禁用IPv6
values:
- label: 0-关闭
value: "0"
- label: 1-开启
value: "1"
- default: "0"
envKey: DISTRIBUTION
required: false
type: select
labelEn: DISTRIBUTION
labelZh: DISTRIBUTION镜像分发
values:
- label: 0-禁止
value: "0"
- label: 1-允许
value: "1"
- default: "1"
envKey: EVENTS
required: false
type: select
labelEn: EVENTS
labelZh: EVENTS事件
values:
- label: 0-禁止
value: "0"
- label: 1-允许
value: "1"
- default: "0"
envKey: EXEC
required: false
type: select
labelEn: EXEC
labelZh: EXEC执行
values:
- label: 0-禁止
value: "0"
- label: 1-允许
value: "1"
- default: "0"
envKey: IMAGES
required: false
type: select
labelEn: IMAGES
labelZh: IMAGES镜像
values:
- label: 0-禁止
value: "0"
- label: 1-允许
value: "1"
- default: "0"
envKey: INFO
required: false
type: select
labelEn: INFO
labelZh: INFO信息
values:
- label: 0-禁止
value: "0"
- label: 1-允许
value: "1"
- default: "info"
envKey: LOG_LEVEL
required: false
type: select
labelEn: LOG_LEVEL
labelZh: LOG_LEVEL日志级别
values:
- label: debug-调试
value: "debug"
- label: info-信息
value: "info"
- label: notice-通知
value: "notice"
- label: warning-警告
value: "warning"
- label: err-错误
value: "err"
- label: crit-严重
value: "crit"
- label: alert-警报
value: "alert"
- label: emerg-紧急
value: "emerg"
- default: "0"
envKey: NETWORKS
required: false
type: select
labelEn: NETWORKS
labelZh: NETWORKS网络
values:
- label: 0-禁止
value: "0"
- label: 1-允许
value: "1"
- default: "0"
envKey: NODES
required: false
type: select
labelEn: NODES
labelZh: NODES节点
values:
- label: 0-禁止
value: "0"
- label: 1-允许
value: "1"
- default: "1"
envKey: PING
required: false
type: select
labelEn: PING
labelZh: PING探针/PING
values:
- label: 0-禁止
value: "0"
- label: 1-允许
value: "1"
- default: "0"
envKey: PLUGINS
required: false
type: select
labelEn: PLUGINS
labelZh: PLUGINS插件
values:
- label: 0-禁止
value: "0"
- label: 1-允许
value: "1"
- default: "0"
envKey: POST
required: false
type: select
labelEn: POST
labelZh: POSTPOST请求
values:
- label: 0-禁止
value: "0"
- label: 1-允许
value: "1"
- default: "0"
envKey: SECRETS
required: false
type: select
labelEn: SECRETS
labelZh: SECRETS机密/Secrets
values:
- label: 0-禁止
value: "0"
- label: 1-允许
value: "1"
- default: "0"
envKey: SERVICES
required: false
type: select
labelEn: SERVICES
labelZh: SERVICES服务
values:
- label: 0-禁止
value: "0"
- label: 1-允许
value: "1"
- default: "0"
envKey: SESSION
required: false
type: select
labelEn: SESSION
labelZh: SESSION会话
values:
- label: 0-禁止
value: "0"
- label: 1-允许
value: "1"
- default: "0"
envKey: SWARM
required: false
type: select
labelEn: SWARM
labelZh: SWARMSwarm集群
values:
- label: 0-禁止
value: "0"
- label: 1-允许
value: "1"
- default: "0"
envKey: SYSTEM
required: false
type: select
labelEn: SYSTEM
labelZh: SYSTEM系统
values:
- label: 0-禁止
value: "0"
- label: 1-允许
value: "1"
- default: "0"
envKey: TASKS
required: false
type: select
labelEn: TASKS
labelZh: TASKS任务
values:
- label: 0-禁止
value: "0"
- label: 1-允许
value: "1"
- default: "1"
envKey: VERSION
required: false
type: select
labelEn: VERSION
labelZh: VERSION版本
values:
- label: 0-禁止
value: "0"
- label: 1-允许
value: "1"
- default: "0"
envKey: VOLUMES
required: false
type: select
labelEn: VOLUMES
labelZh: VOLUMES
values:
- label: 0-禁止
value: "0"
- label: 1-允许
value: "1"

View File

@@ -0,0 +1,49 @@
services:
socket-proxy:
image: ghcr.io/linuxserver/socket-proxy:3.2.9
container_name: ${CONTAINER_NAME}
environment:
- ALLOW_START=${ALLOW_START}
- ALLOW_STOP=${ALLOW_STOP}
- ALLOW_RESTARTS=${ALLOW_RESTARTS}
- AUTH=${AUTH}
- BUILD=${BUILD}
- COMMIT=${COMMIT}
- CONFIGS=${CONFIGS}
- CONTAINERS=${CONTAINERS}
- DISABLE_IPV6=${DISABLE_IPV6}
- DISTRIBUTION=${DISTRIBUTION}
- EVENTS=${EVENTS}
- EXEC=${EXEC}
- IMAGES=${IMAGES}
- INFO=${INFO}
- LOG_LEVEL=${LOG_LEVEL}
- NETWORKS=${NETWORKS}
- NODES=${NODES}
- PING=${PING}
- PLUGINS=${PLUGINS}
- POST=${POST}
- SECRETS=${SECRETS}
- SERVICES=${SERVICES}
- SESSION=${SESSION}
- SWARM=${SWARM}
- SYSTEM=${SYSTEM}
- TASKS=${TASKS}
- TZ=Etc/UTC
- VERSION=${VERSION}
- VOLUMES=${VOLUMES}
ports:
- ${PANEL_APP_PORT_HTTP}:2375
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
restart: always
read_only: true
tmpfs:
- /run
networks:
- 1panel-network
labels:
createdBy: Apps
networks:
1panel-network:
external: true