fix: 持久化 api/worker 容器内存限制,改用 mem_limit: 2g 替代 deploy.resources.limits.memory

This commit is contained in:
CI Test
2026-06-28 11:19:50 +08:00
parent 1ea75e5d33
commit 3292a5d655
+2 -2
View File
@@ -72,11 +72,11 @@ services:
# =========================================
# 资源限制建议(生产环境建议启用)
# =========================================
mem_limit: 2g
deploy:
resources:
limits:
cpus: '2.0'
memory: 2G
reservations:
cpus: '0.5'
memory: 512M
@@ -112,11 +112,11 @@ services:
# 资源限制建议(生产环境建议启用)
# =========================================
# 注意: Worker 需要处理视频,建议分配更多资源
mem_limit: 2g
deploy:
resources:
limits:
cpus: '2.0'
memory: 2G
reservations:
cpus: '0.5'
memory: 1G