fix(compose): remove conflicting mem_limit, consolidate to deploy.resources.limits
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user