feat: add app rustfs

This commit is contained in:
arch3rPro
2025-08-20 12:13:59 +08:00
parent 7600b2af47
commit f1a6b3c00c
7 changed files with 155 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
additionalProperties:
formFields:
- default: 9000
envKey: PANEL_APP_PORT_HTTP
labelEn: Port
labelZh: 端口
required: true
rule: paramPort
type: number
label:
en: Port
zh: 端口

View File

@@ -0,0 +1,35 @@
services:
rustfs:
image: rustfs/rustfs:latest
container_name: ${CONTAINER_NAME}
ports:
- "${PANEL_APP_PORT_HTTP}:9000" # S3 API port
environment:
- RUSTFS_CONSOLE_ENABLE=true
- RUSTFS_LOG_LEVEL=info
volumes:
- ./data:/data
- ./logs:/logs
networks:
- 1panel-network
restart: always
healthcheck:
test:
[
"CMD",
"wget",
"--no-verbose",
"--tries=1",
"--spider",
"http://localhost:9000/health",
]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true