chore(docker): tune production stack for 2C8G hosts
Nexus CI/CD / test (push) Waiting to run
Nexus CI/CD / deploy (push) Blocked by required conditions
Nexus Pre-commit Checks / quick-check (push) Waiting to run

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:
Nexus Deploy
2026-06-05 22:44:06 +08:00
parent 2f67e9e2b9
commit bfda70bbe7
6 changed files with 89 additions and 1 deletions
+1
View File
@@ -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`