Commit befb2662 authored by wang's avatar wang

1

parent 8e62e41e
...@@ -30,6 +30,19 @@ services: ...@@ -30,6 +30,19 @@ services:
container_name: lcc-py-reese84-3 # 启动后的容器名称 相当于 --name 指定的名称 container_name: lcc-py-reese84-3 # 启动后的容器名称 相当于 --name 指定的名称
image: lcctr:latest # 镜像 image: lcctr:latest # 镜像
restart: "on-failure" restart: "on-failure"
deploy:
resources:
limits:
cpus: '2'
memory: 1G
volumes:
- /data/log/lcc-5s/:/data/log/lcc-5s/
environment:
- work_dir=3
reese844: # 单个服务标识(名字)
container_name: lcc-py-reese84-4 # 启动后的容器名称 相当于 --name 指定的名称
image: lcctr:latest # 镜像
restart: "on-failure"
deploy: deploy:
resources: resources:
limits: limits:
......
...@@ -76,7 +76,7 @@ def exec(thread_id): ...@@ -76,7 +76,7 @@ def exec(thread_id):
def run(): def run():
brush_thread = 3 brush_thread = 4
print(f'本次并发数 {brush_thread}') print(f'本次并发数 {brush_thread}')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment