This commit is contained in:
ChenYi 2025-09-03 09:34:24 +08:00
parent 9311b2557f
commit 0a027a165f
2 changed files with 6 additions and 8 deletions

View File

@ -50,7 +50,7 @@ services:
resources:
limits:
cpus: "2"
memory: 2g
memory: 4g
command: >
/bin/bash -c
"bin/apply-config-from-env.py conf/bookkeeper.conf &&
@ -79,7 +79,7 @@ services:
resources:
limits:
cpus: "2"
memory: 2g
memory: 4g
command: >
/bin/bash -c
"bin/apply-config-from-env.py conf/broker.conf && bin/pulsar broker"
@ -209,8 +209,8 @@ services:
deploy:
resources:
limits:
cpus: "2.0"
memory: 2g
cpus: "1.0"
memory: 1g
ports:
- "${REDIS_PORT}:6379"
volumes:
@ -292,7 +292,7 @@ services:
resources:
limits:
cpus: "1.0"
memory: 2g
memory: 200mb
ports:
- "${ADMIN_WEB_PORT}:8080"
stdin_open: true

View File

@ -191,11 +191,9 @@ services:
volumes:
- ./mysql/log:/var/log/mysql
- ./mysql/data:/var/lib/mysql
- ./mysql/init:/docker-entrypoint-initdb.d
command:
- --character-set-server=utf8mb4
- --collation-server=utf8mb4_unicode_ci
- --user=mysql # 确保MySQL以mysql用户运行
deploy:
resources:
limits:
@ -245,7 +243,7 @@ services:
resources:
limits:
cpus: "1.0"
memory: 500mb
memory: 200mb
ports:
- "${ADMIN_WEB_PORT}:8080"
stdin_open: true