Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Repository files navigation
Project: Dockerized Node + MySQL Backend
├── Node Application
│ ├── Basic server (runs on port 5000)
│ └── Simple API response
├── Dockerfile
│ ├── Created Dockerfile for Node app
│ └── Implemented multi-stage build
├── Docker Image
│ └── Built custom image from Dockerfile
├── Docker Compose
│ ├── Node service
│ ├── MySQL service
│ ├── Connected both using network
│ └── Used volume for MySQL data
├── Environment Variables
│ ├── MYSQL_* variables (DB setup)
│ └── DB_* variables (Node connection)
├── Networking
│ └── Node connects to MySQL using service name
├── Port Mapping
│ └── Exposed Node app on localhost:5000
└── Debugging & Testing
├── Fixed YAML errors
├── Fixed Dockerfile issues
├── Solved port & container issues
└── Verified containers using logs & docker commands
Built a Dockerized Node.js application with MySQL using Docker Compose, including multi-stage builds and container networking