Commit 519fa2a1 authored by wang's avatar wang

1

parent ff6d2f10
...@@ -25,4 +25,17 @@ services: ...@@ -25,4 +25,17 @@ services:
volumes: volumes:
- /data/log/lcc-5s/:/data/log/lcc-5s/ - /data/log/lcc-5s/:/data/log/lcc-5s/
environment: environment:
- work_dir=1 - work_dir=2
\ No newline at end of file reese843: # 单个服务标识(名字)
container_name: lcc-py-reese84-3 # 启动后的容器名称 相当于 --name 指定的名称
image: lcctr:latest # 镜像
restart: "on-failure"
deploy:
resources:
limits:
cpus: '2'
memory: 1G
volumes:
- /data/log/lcc-5s/:/data/log/lcc-5s/
environment:
- work_dir=3
\ No newline at end of file
...@@ -76,7 +76,7 @@ def exec(thread_id): ...@@ -76,7 +76,7 @@ def exec(thread_id):
def run(): def run():
brush_thread = 2 brush_thread = 3
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