We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c97e912 commit 882a91dCopy full SHA for 882a91d
docker/unix/docker-compose.yml
@@ -27,10 +27,10 @@ services:
27
# 部署资源限制
28
deploy:
29
replicas: 1 # 指定部署数量
30
- # 暂时不限制资源了,编译和运行目前放一起的
31
- #resources:
32
- # limits: # cpu最大使用数
33
- # cpus: '0.8' # 该服务cpu资源可用百分比,单个cpu打满就是 100%, 这里的 1.0 就是 100% 的 意思
+ # 暂时不限制内存资源了,编译和运行目前放一起的。
+ resources:
+ limits: # cpu最大使用数
+ cpus: '1.5' # 该服务cpu资源可用百分比,单个cpu打满就是 100%, 这里的 1.0 就是 100% 的 意思
34
# memory: 1000M # 主要是编译耗内存:特别是www服务的编译 峰值700~800M,如果只编译 task服务 只需要200M 就够用
35
36
networks:
0 commit comments