mirror of
https://github.com/Hommy-master/capcut-mate.git
synced 2026-08-30 17:48:47 +08:00
优化配置。
This commit is contained in:
@@ -16,6 +16,8 @@ services:
|
||||
- DOWNLOAD_URL=http://127.0.0.1/
|
||||
# 草稿提示URL
|
||||
- TIP_URL=
|
||||
networks:
|
||||
- capcut-mate-network
|
||||
mem_limit: 2G # 内存限制
|
||||
memswap_limit: 2G # 总内存(物理内存 + Swap)限制
|
||||
cpus: '2' # CPU使用率限制为150%,即容器最多可以使用1.5个完整的CPU核心
|
||||
@@ -31,10 +33,16 @@ services:
|
||||
- "80:80"
|
||||
volumes:
|
||||
- ./output:/app/www/output
|
||||
networks:
|
||||
- capcut-mate-network
|
||||
mem_limit: 2G # 内存限制
|
||||
memswap_limit: 2G # 总内存(物理内存 + Swap)限制
|
||||
cpus: '2.0' # CPU使用率限制为150%,即容器最多可以使用1.5个完整的CPU核心
|
||||
oom_score_adj: -500 # 调整 OOM 杀手优先级
|
||||
restart: unless-stopped # 除非手动停止,否则总是重启容器
|
||||
container_name: linux # 这里指容器名称,非必需,不指定时,名称为:<项目名称>-<服务名称>-<序号>
|
||||
#entrypoint: ["/bin/sh", "-c", "sleep 10000"]
|
||||
#entrypoint: ["/bin/sh", "-c", "sleep 10000"]
|
||||
|
||||
networks:
|
||||
capcut-mate-network:
|
||||
driver: bridge
|
||||
Reference in New Issue
Block a user