Lab 1: Infrastructure as Code
Building a MERN Stack with Docker Compose
ImportantLab Information
Assigned: Tuesday, January 20, 2026 Due: Tuesday, January 27, 2026 (before class) Points: 100
Overview
In this lab, you will create a complete MERN (MongoDB, Express, React, Node.js) development environment using Docker and Docker Compose. This foundational setup will be used throughout the semester and demonstrates Infrastructure as Code principles.
Learning Objectives
By completing this lab, you will:
- Create production-ready Dockerfiles for Node.js applications
- Configure Docker Compose for multi-service orchestration
- Implement volume mounting for hot reload development
- Understand container networking and service discovery
- Practice Infrastructure as Code principles
Getting Started
Click the button below to accept the assignment and create your repository:
Prerequisites
Before starting, ensure you have:
- Docker Desktop installed and running
- Visual Studio Code (or preferred editor)
- Git installed
- GitHub account
Getting Help
- Office Hours: Tuesday 9-11 AM, Pitt 2206
- Piazza: Post questions with
lab1tag - TA Sessions: Check LMS for schedule