diff --git a/.env b/.env deleted file mode 100644 index a238f3e..0000000 --- a/.env +++ /dev/null @@ -1,28 +0,0 @@ -COMPOSE_PROJECT_NAME=model-develop-new - -# Local development ports -GATEWAY_PORT=28081 -MYSQL_PORT=23318 -RUSTFS_API_PORT=29010 -RUSTFS_CONSOLE_PORT=29011 -BACKEND_PORT=28010 -RUNTIME_PORT=28012 -SCHEDULE_PORT=28013 - -# Jupyter -JUPYTER_IMAGE=quay.io/jupyter/base-notebook:2025-12-31 -JUPYTER_TOKEN=ModelDevelop_Jupyter_Isolated_2026_A7K9 - -# MySQL -MYSQL_DATABASE=model_develop_isolated -MYSQL_USER=model_develop_app -MYSQL_PASSWORD=ModelDevelop_MySQL_App_2026_B8M4 -MYSQL_ROOT_PASSWORD=ModelDevelop_MySQL_Root_2026_C6R2 - -# RustFS -RUSTFS_IMAGE=rustfs/rustfs:latest -RUSTFS_ACCESS_KEY=modeldevelopisolated -RUSTFS_SECRET_KEY=ModelDevelop_RustFS_2026_D9P5 - -# Internal service authentication -INTERNAL_SERVICE_TOKEN=ModelDevelop_Internal_Service_2026_E4T8 \ No newline at end of file diff --git a/.env.example b/.env.example index 15cade1..a4817c4 100644 --- a/.env.example +++ b/.env.example @@ -1,17 +1,20 @@ -COMPOSE_PROJECT_NAME=model-platform-refactored +COMPOSE_PROJECT_NAME=model-platform -# ports -BACKEND_PORT=8010 -RUNTIME_PORT=8012 -SCHEDULE_PORT=8013 +# External port of the Nginx gateway. Only Nginx is exposed to the host +# (architecture ยง2.2); backend/runtime/schedule stay on the Docker internal +# network. Override here to expose Nginx on a different host port. +GATEWAY_PORT=8888 # MySQL connection URI (async SQLAlchemy driver) DATABASE_URL=mysql+asyncmy://model_platform:ChangeMe_MySQL_App_2026@mysql:3306/model_platform?charset=utf8mb4 -# Object storage (S3-compatible) endpoints -RUSTFS_INTERNAL_ENDPOINT=http://rustfs:9000 -RUSTFS_PUBLIC_ENDPOINT=http://localhost:9010 +# Object storage (S3-compatible, RustFS). +# RUSTFS_ENDPOINT is the single upstream URL consumed by all 4 services: +# - nginx (via scripts/nginx-entrypoint.sh, which parses host + port) +# - backend / runtime / schedule (passed through to boto3 / rclone) +# RUSTFS_ACCESS_KEY / RUSTFS_SECRET_KEY are read by Python code in +# backend/ and schedule/ (boto3 credentials). +RUSTFS_ENDPOINT=http://rustfs:9000 RUSTFS_ACCESS_KEY=modelplatform RUSTFS_SECRET_KEY=ChangeMe_RustFS_2026 -RUSTFS_API_PORT=9010 -RUSTFS_CONSOLE_PORT=9011 + diff --git a/.gitignore b/.gitignore index 723ef36..388de3b 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,8 @@ -.idea \ No newline at end of file +.idea + +.env + +.idea + +.venv +