Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
L
lcc-reese84
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangmingming
lcc-reese84
Commits
d90df26c
Commit
d90df26c
authored
Jan 26, 2024
by
wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
246dee64
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
19 deletions
+19
-19
docker-compose.yml
docker-compose.yml
+18
-18
main.py
src/main.py
+1
-1
No files found.
docker-compose.yml
View file @
d90df26c
version
:
"
3.7"
# compose版本号
services
:
reese841
:
# 单个服务标识(名字)
container_name
:
lcc-py-
t
r-1
# 启动后的容器名称 相当于 --name 指定的名称
image
:
lcc
t
r:latest
# 镜像
container_name
:
lcc-py-
p
r-1
# 启动后的容器名称 相当于 --name 指定的名称
image
:
lcc
p
r:latest
# 镜像
restart
:
"
always"
deploy
:
resources
:
...
...
@@ -10,22 +10,22 @@ services:
cpus
:
'
2'
memory
:
1G
volumes
:
-
/data/log/lcc-
5s/:/data/log/lcc-5s
/
-
/data/log/lcc-
pr/:/data/log/lcc-pr
/
environment
:
-
work_dir=1
reese842
:
# 单个服务标识(名字)
container_name
:
lcc-py-tr-2
# 启动后的容器名称 相当于 --name 指定的名称
image
:
lcctr:latest
# 镜像
restart
:
"
always"
deploy
:
resources
:
limits
:
cpus
:
'
2'
memory
:
1G
volumes
:
-
/data/log/lcc-5s/:/data/log/lcc-5s
/
environment
:
-
work_dir=2
#
reese842: # 单个服务标识(名字)
#
container_name: lcc-py-tr-2 # 启动后的容器名称 相当于 --name 指定的名称
#
image: lcctr:latest # 镜像
#
restart: "always"
#
deploy:
#
resources:
#
limits:
#
cpus: '2'
#
memory: 1G
#
volumes:
# - /data/log/lcc-pr/:/data/log/lcc-pr
/
#
environment:
#
- work_dir=2
# reese843: # 单个服务标识(名字)
# container_name: lcc-py-reese84-3 # 启动后的容器名称 相当于 --name 指定的名称
# image: lcctr:latest # 镜像
...
...
@@ -36,7 +36,7 @@ services:
# cpus: '2'
# memory: 1G
# volumes:
# - /data/log/lcc-
5s/:/data/log/lcc-5s
/
# - /data/log/lcc-
pr/:/data/log/lcc-pr
/
# environment:
# - work_dir=3
# reese844: # 单个服务标识(名字)
...
...
@@ -49,6 +49,6 @@ services:
# cpus: '2'
# memory: 1G
# volumes:
# - /data/log/lcc-
5s/:/data/log/lcc-5s
/
# - /data/log/lcc-
pr/:/data/log/lcc-pr
/
# environment:
# - work_dir=3
\ No newline at end of file
src/main.py
View file @
d90df26c
...
...
@@ -62,7 +62,7 @@ def exec(thread_id):
# format='{time:YYYY-MM-DD HH:mm:ss.SSS} |<lvl>{level:8}</>| {name} : {module}:{line:4} | <cyan>{extra[module_name]}</> | - <lvl>{message}</>',
# colorize=True, level="INFO")
log
.
add
(
pathlib
.
Path
(
work_dir
)
.
joinpath
(
f
'
5s
-{thread_id}.log'
),
log
.
add
(
pathlib
.
Path
(
work_dir
)
.
joinpath
(
f
'
pr
-{thread_id}.log'
),
format
=
'{time:YYYY-MM-DD HH:mm:ss.SSS} |<lvl>{level:8}</>| {name} : {module}:{line:4} | <cyan>{extra[module_name]}</> | - <lvl>{message}</>'
,
colorize
=
False
,
level
=
"INFO"
)
log
.
warning
(
f
"logpath {Path(work_dir).joinpath(f'pr-{thread_id}.log')}"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment