1
0

feat:添加mt-photos-ai到列表

This commit is contained in:
okxlin
2024-12-12 17:50:21 +08:00
parent 6a87bf8a57
commit 393172a830
12 changed files with 159 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
API_AUTH_KEY="mt_photos_ai_extra_secret"
CONTAINER_NAME="mt-photos-ai"
PANEL_APP_PORT_HTTP=40335

View File

@@ -0,0 +1,19 @@
additionalProperties:
formFields:
- default: "40335"
edit: true
envKey: PANEL_APP_PORT_HTTP
labelEn: Port
labelZh: 端口
required: true
rule: paramPort
type: number
- default: "mt_photos_ai_extra_secret"
edit: true
envKey: API_AUTH_KEY
labelEn: API Auth Key
labelZh: API 授权密钥
random: true
required: true
rule: paramComplexity
type: password

View File

@@ -0,0 +1,22 @@
services:
mt-photos-ai:
image: "mtphotos/mt-photos-ai:onnx-latest"
container_name: ${CONTAINER_NAME}
restart: always
networks:
- 1panel-network
ports:
- "${PANEL_APP_PORT_HTTP}:8060"
environment:
- API_AUTH_KEY=${API_AUTH_KEY}
deploy:
resources:
reservations:
devices:
- capabilities: [gpu]
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true