version: '3.8' services: jtjai_media: build: context: . dockerfile: Dockerfile platform: linux/amd64 image: k8s.device.wenhq.top:8583/docker_r/jtjai_media:latest container_name: jtjai_media ports: - "8080:8080" volumes: # 挂载配置文件(可选,如果需要修改配置) - ./config.json:/app/config.json:ro # 挂载输出目录到宿主机,持久化视频文件 - ./output:/app/output restart: unless-stopped environment: - TZ=Asia/Shanghai # 资源限制(可选) deploy: resources: limits: cpus: '2.0' memory: 2G reservations: cpus: '1.0' memory: 512M # 健康检查 healthcheck: test: ["CMD", "curl", "-f", "http://localhost:8080/"] interval: 30s timeout: 10s retries: 3 start_period: 40s