chore(docker): tune production stack for 2C8G hosts
Add mysql-prod-2c8g.cnf, container mem/cpu limits, Redis maxmemory, and default Nexus pool 30/20 for 8GiB 1Panel deployments.
This commit is contained in:
@@ -62,6 +62,7 @@ docker compose -f docker/docker-compose.prod.yml --env-file docker/.env.prod up
|
||||
|
||||
- 镜像:`Dockerfile.prod`(含 `npm ci` + `vite build`)
|
||||
- 仅绑定 `127.0.0.1:8600`;OpenResty 反代见 `deploy/1panel/openresty-nexus.conf.example`
|
||||
- **2C8G 调优**:`docker/mysql-prod-2c8g.cnf`(buffer pool 1G、`max_connections=120`)+ 容器 `mem_limit` + `NEXUS_DB_POOL_SIZE=30`
|
||||
- 完整迁移步骤:`docs/design/plans/2026-06-04-1panel-docker-production.md`
|
||||
|
||||
详见 `docs/design/specs/2026-06-03-docker-design.md`。
|
||||
|
||||
Reference in New Issue
Block a user