1
0

feat:添加hivision-id-photo到列表

This commit is contained in:
okxlin
2024-12-12 00:54:19 +08:00
parent 56ef30d060
commit a690ae06bf
12 changed files with 275 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
COMMAND="python3 -u app.py --host 0.0.0.0 --port 7860"
CONTAINER_NAME="hivision-id-photo"
DEFAULT_LANG="zh"
FACE_PLUS_API_KEY=""
FACE_PLUS_API_SECRET=""
PANEL_APP_PORT_HTTP=40330
PANEL_APP_PORT_HTTP_INTERNAL=7860
RUN_MODE=""

View File

@@ -0,0 +1,53 @@
additionalProperties:
formFields:
- default: "40330"
edit: true
envKey: PANEL_APP_PORT_HTTP
labelEn: Port
labelZh: 端口
required: true
rule: paramPort
type: number
- default: "7860"
edit: true
envKey: PANEL_APP_PORT_HTTP_INTERNAL
labelEn: Internal Port
labelZh: 内部端口
required: true
rule: paramPort
type: number
- default: "python3 -u app.py --host 0.0.0.0 --port 7860"
edit: true
envKey: COMMAND
labelEn: Command
labelZh: 启动命令
required: true
type: text
- default: ""
edit: true
envKey: FACE_PLUS_API_KEY
labelEn: FACE Plus API Key
labelZh: FACE Plus API 密钥
required: false
type: text
- default: ""
edit: true
envKey: FACE_PLUS_API_SECRET
labelEn: FACE Plus API Secret
labelZh: FACE Plus API 密钥 Secret
required: false
type: text
- default: ""
edit: true
envKey: RUN_MODE
labelEn: Run Mode
labelZh: 运行模式
required: false
type: text
- default: "zh"
edit: true
envKey: DEFAULT_LANG
labelEn: Default Language
labelZh: 默认语言
required: false
type: text

View File

@@ -0,0 +1,26 @@
services:
hivision-id-photo:
image: "linzeyi/hivision_idphotos:latest"
container_name: ${CONTAINER_NAME}
restart: always
networks:
- 1panel-network
ports:
- "${PANEL_APP_PORT_HTTP}:${PANEL_APP_PORT_HTTP_INTERNAL}"
environment:
- FACE_PLUS_API_KEY=${FACE_PLUS_API_KEY}
- FACE_PLUS_API_SECRET=${FACE_PLUS_API_SECRET}
- RUN_MODE=${RUN_MODE}
- DEFAULT_LANG=${DEFAULT_LANG}
command: ${COMMAND}
deploy:
resources:
reservations:
devices:
- capabilities: [gpu]
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true