feat(docker): remove bundled MySQL from production Compose stack

Production installs now run only the Nexus container; MySQL and Redis are self-hosted on the machine or 1Panel, with install wizard defaults pointing at host.docker.internal.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Nexus Deploy
2026-06-06 03:27:57 +08:00
parent e42dc77127
commit f37ebf8621
17 changed files with 245 additions and 108 deletions
+3 -3
View File
@@ -114,11 +114,11 @@ def _resolve_redis_probe() -> tuple[str, int, str | None]:
def _docker_wizard_defaults() -> dict[str, str] | None:
"""Prefill install step 3 when running inside docker-compose.prod.yml."""
if os.environ.get("NEXUS_DOCKER_WRITE_ENV") != "1" and not os.environ.get("REDIS_HOST"):
if os.environ.get("NEXUS_DOCKER_WRITE_ENV") != "1":
return None
return {
"db_host": os.environ.get("MYSQL_HOST", "mysql"),
"db_port": os.environ.get("MYSQL_PORT", "3306"),
"db_host": "host.docker.internal",
"db_port": "3306",
"db_name": "nexus",
"db_user": "nexus",
"redis_host": "host.docker.internal",