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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user