feat:添加docker-osx到列表
This commit is contained in:
4
apps/docker-osx/latest-online/.env.sample
Normal file
4
apps/docker-osx/latest-online/.env.sample
Normal file
@@ -0,0 +1,4 @@
|
||||
CONTAINER_NAME="docker-osx"
|
||||
DISPLAY=":0.0"
|
||||
PANEL_APP_PORT_SSH=40287
|
||||
RESTART_POLICY="unless-stopped"
|
||||
31
apps/docker-osx/latest-online/data.yml
Normal file
31
apps/docker-osx/latest-online/data.yml
Normal file
@@ -0,0 +1,31 @@
|
||||
additionalProperties:
|
||||
formFields:
|
||||
- default: ":0.0"
|
||||
edit: true
|
||||
envKey: DISPLAY
|
||||
labelEn: Display
|
||||
labelZh: 显示
|
||||
required: true
|
||||
type: text
|
||||
- default: "40287"
|
||||
edit: true
|
||||
envKey: PANEL_APP_PORT_SSH
|
||||
labelEn: SSH Port
|
||||
labelZh: SSH 端口
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: "unless-stopped"
|
||||
edit: true
|
||||
envKey: RESTART_POLICY
|
||||
labelEn: Restart Policy
|
||||
labelZh: 重启策略
|
||||
required: true
|
||||
type: select
|
||||
values:
|
||||
- label: "Always"
|
||||
value: "always"
|
||||
- label: "Unless-stopped"
|
||||
value: "unless-stopped"
|
||||
- label: "No"
|
||||
value: "no"
|
||||
31
apps/docker-osx/latest-online/docker-compose.yml
Normal file
31
apps/docker-osx/latest-online/docker-compose.yml
Normal file
@@ -0,0 +1,31 @@
|
||||
services:
|
||||
docker_osx:
|
||||
image: "sickcodes/docker-osx:latest"
|
||||
container_name: ${CONTAINER_NAME}
|
||||
restart: ${RESTART_POLICY}
|
||||
networks:
|
||||
- 1panel-network
|
||||
devices:
|
||||
- /dev/kvm
|
||||
environment:
|
||||
- INTERNAL_SSH_PORT=10022
|
||||
- DISPLAY:=${DISPLAY:-:0.0}
|
||||
ports:
|
||||
- ${PANEL_APP_PORT_SSH}:10022
|
||||
volumes:
|
||||
- /tmp/.X11-unix:/tmp/.X11-unix
|
||||
- /dev:/dev
|
||||
- /lib/modules:/lib/modules
|
||||
- docker-osx_data:/home
|
||||
cap_add:
|
||||
- ALL
|
||||
labels:
|
||||
createdBy: "Apps"
|
||||
|
||||
volumes:
|
||||
docker-osx_data:
|
||||
name: docker-osx_data
|
||||
|
||||
networks:
|
||||
1panel-network:
|
||||
external: true
|
||||
3
apps/docker-osx/latest-online/scripts/uninstall.sh
Normal file
3
apps/docker-osx/latest-online/scripts/uninstall.sh
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
docker-compose down --volumes
|
||||
Reference in New Issue
Block a user