feat:添加natter到列表
This commit is contained in:
6
apps/natter/latest/.env.sample
Normal file
6
apps/natter/latest/.env.sample
Normal file
@@ -0,0 +1,6 @@
|
||||
CONTAINER_NAME="natter"
|
||||
COMMAND="-m test"
|
||||
EXTERNAL_DATA_PATH="./data"
|
||||
INTERNAL_DATA_PATH="/data"
|
||||
SERVICE_NAME="natter-service"
|
||||
TIME_ZONE="Asia/Shanghai"
|
||||
38
apps/natter/latest/data.yml
Normal file
38
apps/natter/latest/data.yml
Normal file
@@ -0,0 +1,38 @@
|
||||
additionalProperties:
|
||||
formFields:
|
||||
- default: "natter-service"
|
||||
edit: true
|
||||
envKey: SERVICE_NAME
|
||||
labelEn: Service Name
|
||||
labelZh: 服务名称
|
||||
required: true
|
||||
rule: paramCommon
|
||||
type: text
|
||||
- default: "-m test"
|
||||
edit: true
|
||||
envKey: COMMAND
|
||||
labelEn: Command
|
||||
labelZh: 命令
|
||||
required: true
|
||||
type: text
|
||||
- default: "./data"
|
||||
edit: true
|
||||
envKey: EXTERNAL_DATA_PATH
|
||||
labelEn: External Data Path
|
||||
labelZh: 外部数据路径
|
||||
required: true
|
||||
type: text
|
||||
- default: "/data"
|
||||
edit: true
|
||||
envKey: INTERNAL_DATA_PATH
|
||||
labelEn: Internal container data paths
|
||||
labelZh: 容器内部数据路径
|
||||
required: true
|
||||
type: text
|
||||
- default: Asia/Shanghai
|
||||
edit: true
|
||||
envKey: TIME_ZONE
|
||||
labelEn: Time zone
|
||||
labelZh: 时区
|
||||
required: true
|
||||
type: text
|
||||
17
apps/natter/latest/docker-compose.yml
Normal file
17
apps/natter/latest/docker-compose.yml
Normal file
@@ -0,0 +1,17 @@
|
||||
services:
|
||||
${SERVICE_NAME}:
|
||||
image: "nattertool/natter:latest"
|
||||
container_name: ${CONTAINER_NAME}
|
||||
command: ${COMMAND}
|
||||
volumes:
|
||||
- ${EXTERNAL_DATA_PATH}:${INTERNAL_DATA_PATH}
|
||||
cap_add:
|
||||
- NET_ADMIN
|
||||
- NET_RAW
|
||||
environment:
|
||||
- TZ=${TIME_ZONE}
|
||||
network_mode: host
|
||||
restart: always
|
||||
labels:
|
||||
createdBy: "Apps"
|
||||
|
||||
Reference in New Issue
Block a user