This guide walks you through setting up and running the Ultimate DevOps Project locally using Docker Compose on an AWS EC2 instance.
- Set up an IAM user with necessary EC2 and EBS permissions.
- Instance type:
t2.large - Minimum volume size: 8 GB
Follow the official Docker documentation for Ubuntu:
🔗 Install Docker on Ubuntu
git clone https://github.com/I-am-nk/ultimate-devops-project-demo.git
cd ultimate-devops-project-demodocker compose up -dYou may encounter storage issues due to the multi-service architecture. To resolve this:
df -hVia AWS Console:
- Go to EC2 Dashboard → Elastic Block Store → Volumes
- Find your EC2's attached volume
- Click Actions → Modify Volume
- Update the size to 30 GB
- Confirm and apply changes
# Check partitions
lsblk
# Expand partition (e.g., /dev/xvda1)
sudo growpart /dev/xvda 1
# Resize filesystem
sudo resize2fs /dev/xvda1
# Verify new space
df -hdocker compose up -dOpen your browser and visit:
http://<EC2-PUBLIC-IP>:8080
Enjoy running your full-fledged DevOps monitoring stack using Docker Compose, EC2, and OpenTelemetry!