Skip to content

Commit 882a91d

Browse files
committed
update
1 parent c97e912 commit 882a91d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docker/unix/docker-compose.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ services:
2727
# 部署资源限制
2828
deploy:
2929
replicas: 1 # 指定部署数量
30-
# 暂时不限制资源了,编译和运行目前放一起的
31-
#resources:
32-
# limits: # cpu最大使用数
33-
# cpus: '0.8' # 该服务cpu资源可用百分比,单个cpu打满就是 100%, 这里的 1.0 就是 100% 的 意思
30+
# 暂时不限制内存资源了,编译和运行目前放一起的
31+
resources:
32+
limits: # cpu最大使用数
33+
cpus: '1.5' # 该服务cpu资源可用百分比,单个cpu打满就是 100%, 这里的 1.0 就是 100% 的 意思
3434
# memory: 1000M # 主要是编译耗内存:特别是www服务的编译 峰值700~800M,如果只编译 task服务 只需要200M 就够用
3535

3636
networks:

0 commit comments

Comments
 (0)