1
0

feat:添加docker-hoster到列表

This commit is contained in:
okxlin
2024-08-01 20:28:50 +08:00
parent 2b7978a62a
commit 6d3fde0734
6 changed files with 57 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
CONTAINER_NAME="docker-hoster"
DOCKER_SOCK_PATH="/var/run/docker.sock"
HOSTS_PATH="/etc/hosts"

View File

@@ -0,0 +1,16 @@
additionalProperties:
formFields:
- default: "/var/run/docker.sock"
edit: true
envKey: DOCKER_SOCK_PATH
labelEn: Docker Socket Path
labelZh: Docker 套接字路径
required: true
type: text
- default: "/etc/hosts"
edit: true
envKey: HOSTS_PATH
labelEn: Hosts File Path
labelZh: Hosts 文件路径
required: true
type: text

View File

@@ -0,0 +1,16 @@
services:
docker-hoster:
image: "solipsist01/docker-hoster:latest"
container_name: ${CONTAINER_NAME}
restart: always
networks:
- 1panel-network
volumes:
- ${DOCKER_SOCK_PATH}:/tmp/docker.sock
- ${HOSTS_PATH}:/tmp/hosts
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true