Files
capcut-mate/docker-compose.example.yaml
2026-04-20 18:56:53 +08:00

27 lines
1.4 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
services:
capcut-mate:
image: gogoshine/capcut-mate:latest
#image: gogoshine/capcut-mate:sha-190a61f
ports:
- "30000:30000"
volumes:
- ./logs:/app/logs
- /opt/1panel/apps/openresty/openresty/www/sites/capcut-mate.jcaigc.cn/index/output:/app/output # 挂载配置文件目录
- /etc/localtime:/etc/localtime:ro # 挂载主机时区
- /etc/timezone:/etc/timezone:ro # 挂载时区名称(可选)
environment:
# 草稿下载URL
- DRAFT_URL=https://capcut-mate.jcaigc.cn/openapi/capcut-mate/v1/get_draft
# 用于将容器内部的文件路径转成URL本质是将/app/替换成DOWNLOAD_URL得到下载路径
- DOWNLOAD_URL=https://capcut-mate.jcaigc.cn/
# 草稿提示URL
- TIP_URL=https://docs.jcaigc.cn
# 文件下载大小限制字节默认200MB209715200
- DOWNLOAD_FILE_SIZE_LIMIT=209715200
mem_limit: 2G # 内存限制
memswap_limit: 2G # 总内存(物理内存 + Swap限制
cpus: '2' # CPU使用率限制为150%即容器最多可以使用1.5个完整的CPU核心
oom_score_adj: -500 # 调整 OOM 杀手优先级
restart: unless-stopped # 除非手动停止,否则总是重启容器
container_name: capcut-mate # 这里指容器名称,非必需,不指定时,名称为:<项目名称>-<服务名称>-<序号>
#entrypoint: ["/bin/sh", "-c", "sleep 10000"]