Update project structure and configuration
- Enhanced .gitignore to include additional Python-related files. - Updated docker-compose.yml to version 3.8, added container name, health check, and network configuration. - Modified Dockerfile to set environment variables, install system dependencies, and add a health check. - Updated requirements.txt with specific package versions. - Removed obsolete files related to cloud deployment and experiments. - Improved EDA notebook with additional data loading and exploration steps.
This commit is contained in:
+16
-2
@@ -1,8 +1,9 @@
|
||||
version: '3'
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
fraud-detection:
|
||||
build: .
|
||||
container_name: fraud-detection-api
|
||||
ports:
|
||||
- "8000:8000" # API
|
||||
- "8501:8501" # Streamlit
|
||||
@@ -11,4 +12,17 @@ services:
|
||||
- ./models:/app/models
|
||||
environment:
|
||||
- PYTHONUNBUFFERED=1
|
||||
restart: unless-stopped
|
||||
- ENVIRONMENT=development
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 40s
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- fraud-detection-network
|
||||
|
||||
networks:
|
||||
fraud-detection-network:
|
||||
driver: bridge
|
||||
Reference in New Issue
Block a user