-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (36 loc) · 1.03 KB
/
docker-compose.yml
File metadata and controls
42 lines (36 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# MHTI Docker Compose Configuration
# =====================================
# Architecture: Caddy (reverse proxy) + FastAPI (API)
# - Port 8000: Main entry (Caddy - frontend + API unified)
#
# Usage:
# docker-compose up -d # Start
# docker-compose logs -f # View logs
# docker-compose down # Stop
services:
mhti:
image: xiyan520/mhti:latest
container_name: mhti
restart: unless-stopped
ports:
- "8000:8000" # Main entry (Caddy - frontend + API)
volumes:
- ./data:/app/data
- ./Caddyfile:/etc/caddy/Caddyfile:ro # 挂载本地 Caddyfile
# Media library mount points
# - /path/to/your/media:/media:ro
# - /path/to/your/output:/output
environment:
- DATA_DIR=/app/data
- TZ=Asia/Shanghai
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"