提交 e24b6811 authored 作者: 任建彩's avatar 任建彩

配置

上级 93cf9c8e
...@@ -33,10 +33,10 @@ services: ...@@ -33,10 +33,10 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
#cpus: '0.05' # 上限 单核5% 网关根据使用调整大小 #cpus: '0.05' # 涓婇檺 鍗曟牳5% 缃戝叧鏍规嵁浣跨敤璋冩暣澶у皬
memory: 512M memory: 512M
reservations: reservations:
#cpus: '0.01' # 下限 #cpus: '0.01' # 涓嬮檺
memory: 256M memory: 256M
networks: networks:
- lemon - lemon
...@@ -45,7 +45,7 @@ services: ...@@ -45,7 +45,7 @@ services:
container_name: lemon-admin container_name: lemon-admin
restart: always restart: always
ports: ports:
- 8016:8016 - 8016:8016
volumes: volumes:
- /opt/logs/lemon/admin/:/opt/logs/lemon/admin/ - /opt/logs/lemon/admin/:/opt/logs/lemon/admin/
- /etc/localtime:/etc/localtime - /etc/localtime:/etc/localtime
...@@ -53,10 +53,10 @@ services: ...@@ -53,10 +53,10 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
#cpus: '0.05' # 上限 单核5% 网关根据使用调整大小 #cpus: '0.05' # 涓婇檺 鍗曟牳5% 缃戝叧鏍规嵁浣跨敤璋冩暣澶у皬
memory: 512M memory: 512M
reservations: reservations:
#cpus: '0.01' # 下限 #cpus: '0.01' # 涓嬮檺
memory: 256M memory: 256M
networks: networks:
- lemon - lemon
...@@ -73,10 +73,10 @@ services: ...@@ -73,10 +73,10 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
#cpus: '0.05' # 上限 单核5% 网关根据使用调整大小 #cpus: '0.05' # 涓婇檺 鍗曟牳5% 缃戝叧鏍规嵁浣跨敤璋冩暣澶у皬
memory: 512M memory: 512M
reservations: reservations:
#cpus: '0.01' # 下限 #cpus: '0.01' # 涓嬮檺
memory: 256M memory: 256M
networks: networks:
- lemon - lemon
...@@ -95,10 +95,10 @@ services: ...@@ -95,10 +95,10 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
#cpus: '0.05' # 上限 单核5% 网关根据使用调整大小 #cpus: '0.05' # 涓婇檺 鍗曟牳5% 缃戝叧鏍规嵁浣跨敤璋冩暣澶у皬
memory: 2048M memory: 2048M
reservations: reservations:
#cpus: '0.01' # 下限 #cpus: '0.01' # 涓嬮檺
memory: 256M memory: 256M
networks: networks:
- lemon - lemon
...@@ -115,10 +115,10 @@ services: ...@@ -115,10 +115,10 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
#cpus: '0.05' # 上限 单核5% 网关根据使用调整大小 #cpus: '0.05' # 涓婇檺 鍗曟牳5% 缃戝叧鏍规嵁浣跨敤璋冩暣澶у皬
memory: 512M memory: 512M
reservations: reservations:
#cpus: '0.01' # 下限 #cpus: '0.01' # 涓嬮檺
memory: 256M memory: 256M
networks: networks:
- lemon - lemon
...@@ -129,17 +129,17 @@ services: ...@@ -129,17 +129,17 @@ services:
ports: ports:
- 8005:8005 - 8005:8005
volumes: volumes:
- /opt/logs/lemon/resource/:/opt/logs/lemon/resource/ - /opt/logs/lemon/resource/:/opt/logs/lemon/resource/
- /etc/localtime:/etc/localtime - /etc/localtime:/etc/localtime
- /opt/upload/lemon:/opt/upload/lemon - /opt/upload/lemon:/opt/upload/lemon
- /etc/fuse/resource/config:/etc/fuse/resource/config - /etc/fuse/resource/config:/etc/fuse/resource/config
deploy: deploy:
resources: resources:
limits: limits:
#cpus: '0.05' # 上限 单核5% 网关根据使用调整大小 #cpus: '0.05' # 涓婇檺 鍗曟牳5% 缃戝叧鏍规嵁浣跨敤璋冩暣澶у皬
memory: 1024M memory: 1024M
reservations: reservations:
#cpus: '0.01' # 下限 #cpus: '0.01' # 涓嬮檺
memory: 512M memory: 512M
networks: networks:
- lemon - lemon
...@@ -156,10 +156,10 @@ services: ...@@ -156,10 +156,10 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
#cpus: '0.05' # 上限 单核5% 网关根据使用调整大小 #cpus: '0.05' # 涓婇檺 鍗曟牳5% 缃戝叧鏍规嵁浣跨敤璋冩暣澶у皬
memory: 512M memory: 512M
reservations: reservations:
#cpus: '0.01' # 下限 #cpus: '0.01' # 涓嬮檺
memory: 256M memory: 256M
networks: networks:
- lemon - lemon
...@@ -176,10 +176,10 @@ services: ...@@ -176,10 +176,10 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
#cpus: '0.05' # 上限 单核5% 网关根据使用调整大小 #cpus: '0.05' # 涓婇檺 鍗曟牳5% 缃戝叧鏍规嵁浣跨敤璋冩暣澶у皬
memory: 1024M memory: 1024M
reservations: reservations:
#cpus: '0.01' # 下限 #cpus: '0.01' # 涓嬮檺
memory: 512M memory: 512M
networks: networks:
- lemon - lemon
...@@ -196,10 +196,10 @@ services: ...@@ -196,10 +196,10 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
#cpus: '0.05' # 上限 单核5% 网关根据使用调整大小 #cpus: '0.05' # 涓婇檺 鍗曟牳5% 缃戝叧鏍规嵁浣跨敤璋冩暣澶у皬
memory: 512M memory: 512M
reservations: reservations:
#cpus: '0.01' # 下限 #cpus: '0.01' # 涓嬮檺
memory: 256M memory: 256M
networks: networks:
- lemon - lemon
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论