chore: bind ML service port to 127.0.0.1:8001:8001 for localhost-only access

- Changed ML service port binding from 8001:8001 to 127.0.0.1:8001:8001 in docker-compose.yml
- Marks task 1.8 as complete in tasks.md
This commit is contained in:
Marko Djordjevic 2026-02-18 10:58:31 +01:00
parent c327ba3370
commit 4e5ce321b9
2 changed files with 2 additions and 2 deletions

View file

@ -28,7 +28,7 @@ services:
ml-service:
build: ./services/ml
ports:
- "8001:8001"
- "127.0.0.1:8001:8001"
volumes:
- ml-data:/app/data
- mlflow-data:/app/mlruns

View file

@ -7,7 +7,7 @@
- [x] 1.5 `[sonnet]` Update `docker-compose.yml` to use `${POSTGRES_USER}`, `${POSTGRES_PASSWORD}`, `${POSTGRES_DB}` env var interpolation in all DATABASE_URL values
- [x] 1.6 `[haiku]` Bind PostgreSQL port to `127.0.0.1:5432:5432` in `docker-compose.yml`
- [x] 1.7 `[haiku]` Bind MLflow port to `127.0.0.1:5000:5000` in `docker-compose.yml`
- [ ] 1.8 `[haiku]` Bind ML service port to `127.0.0.1:8001:8001` in `docker-compose.yml`
- [x] 1.8 `[haiku]` Bind ML service port to `127.0.0.1:8001:8001` in `docker-compose.yml`
## 2. Security Critical — Input Validation & CORS