精简提交历史记录
This commit is contained in:
66
apps/docker-lxc/latest/data.yml
Normal file
66
apps/docker-lxc/latest/data.yml
Normal file
@@ -0,0 +1,66 @@
|
||||
additionalProperties:
|
||||
formFields:
|
||||
- default: 40044
|
||||
edit: true
|
||||
envKey: PANEL_APP_PORT_HTTP
|
||||
labelEn: SSH Port
|
||||
labelZh: SSH 端口
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: 50000-50010
|
||||
edit: true
|
||||
envKey: EXTERNAL_PORT
|
||||
labelEn: External port
|
||||
labelZh: 外部端口
|
||||
required: true
|
||||
type: text
|
||||
- default: 50000-50010
|
||||
edit: true
|
||||
envKey: INTERNAL_PORT
|
||||
labelEn: Internal port
|
||||
labelZh: 内部端口
|
||||
required: true
|
||||
type: text
|
||||
- default: ./data/data
|
||||
edit: true
|
||||
envKey: EXTERNAL_DATA1
|
||||
labelEn: External folder path 1
|
||||
labelZh: 外部文件夹路径1
|
||||
required: true
|
||||
type: text
|
||||
- default: /data
|
||||
edit: true
|
||||
envKey: INTERNAL_DATA1
|
||||
labelEn: Internal folder path 1
|
||||
labelZh: 内部文件夹路径1
|
||||
required: true
|
||||
type: text
|
||||
- default: ./data/www
|
||||
edit: true
|
||||
envKey: EXTERNAL_DATA2
|
||||
labelEn: External folder path 2
|
||||
labelZh: 外部文件夹路径2
|
||||
required: true
|
||||
type: text
|
||||
- default: /www
|
||||
edit: true
|
||||
envKey: INTERNAL_DATA2
|
||||
labelEn: Internal folder path 2
|
||||
labelZh: 内部文件夹路径2
|
||||
required: true
|
||||
type: text
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: SSH_KEY
|
||||
labelEn: SSH public key
|
||||
labelZh: SSH 公钥
|
||||
required: false
|
||||
type: text
|
||||
- default: "lxc1"
|
||||
edit: true
|
||||
envKey: LXC_HOSTNAME
|
||||
labelEn: LXC hostname
|
||||
labelZh: LXC主机名
|
||||
required: true
|
||||
type: text
|
||||
30
apps/docker-lxc/latest/docker-compose.yml
Normal file
30
apps/docker-lxc/latest/docker-compose.yml
Normal file
@@ -0,0 +1,30 @@
|
||||
version: '3'
|
||||
services:
|
||||
lxc:
|
||||
container_name: ${CONTAINER_NAME}
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: ${CPUS}
|
||||
memory: ${MEMORY_LIMIT}
|
||||
restart: always
|
||||
networks:
|
||||
- 1panel-network
|
||||
ports:
|
||||
- "${PANEL_APP_PORT_HTTP}:22"
|
||||
- "${EXTERNAL_PORT}:${INTERNAL_PORT}"
|
||||
volumes:
|
||||
- "${EXTERNAL_DATA1}:${INTERNAL_DATA1}"
|
||||
- "${EXTERNAL_DATA2}:${INTERNAL_DATA2}"
|
||||
environment:
|
||||
- DISTRIBUTION=alpine
|
||||
- INITIAL_SSH_KEY=${SSH_KEY}
|
||||
hostname: ${LXC_HOSTNAME}
|
||||
privileged: true
|
||||
image: micwy/lxc:latest
|
||||
labels:
|
||||
createdBy: "Apps"
|
||||
|
||||
networks:
|
||||
1panel-network:
|
||||
external: true
|
||||
Reference in New Issue
Block a user