This directory contains Docker configuration files for containerizing the Project Nexus application.
- Dockerfile - Frontend container configuration
- docker-compose.yml - Multi-container orchestration
- .dockerignore - Files to exclude from Docker build
- Docker Desktop installed (Download here)
- Docker Compose (included with Docker Desktop)
# Navigate to project root
cd "f:\BS IT\Project_Nexus"
# Build and start containers
docker-compose -f docker/docker-compose.yml up -d
# Access the application
# Open browser: http://localhost:3000# Navigate to project root
cd "f:\BS IT\Project_Nexus"
# Build Docker image
docker build -t project-nexus-frontend -f docker/Dockerfile .
# Run container
docker run -d -p 3000:80 --name nexus-app project-nexus-frontend
# Access the application
# Open browser: http://localhost:3000docker-compose -f docker/docker-compose.yml up -ddocker-compose -f docker/docker-compose.yml downdocker-compose -f docker/docker-compose.yml logs -f frontenddocker-compose -f docker/docker-compose.yml build --no-cache
docker-compose -f docker/docker-compose.yml up -ddocker-compose -f docker/docker-compose.yml down -v
docker rmi project-nexus-frontend| Container | Port | Description |
|---|---|---|
| frontend | 3000:80 | React app served via Nginx |
The docker-compose.yml includes commented sections for:
- Backend API (FastAPI)
- PostgreSQL Database
- Redis Cache
- MongoDB (if needed)
- Apache Kafka (if needed)
These will be uncommented and configured during Phase 2 backend development.
# Change port in docker-compose.yml from 3000:80 to 3001:80# Clean Docker cache
docker system prune -a
# Rebuild from scratch
docker-compose -f docker/docker-compose.yml build --no-cache# Check logs
docker logs project-nexus-frontend
# Check if port is available
netstat -ano | findstr :3000- Frontend container uses multi-stage build for optimized image size
- Production build is served via Nginx
- Development environment should still use
npm run devfor HMR - Docker is primarily for production deployment and testing
Last Updated: 27 January 2026