Dhanush Boopathi’s Post

🚀 Day 44 of #100DaysOfDevOps – Writing a Docker Compose File “Experience is the name everyone gives to their mistakes.” — Oscar Wilde Today’s learning hit right where it counts — attention to detail. The task was to create a Docker Compose file for hosting a static website using Apache (httpd). It seemed simple… until I hit a persistent YAML error. I double-checked syntax, reviewed every key, and even reinstalled Compose — but the error remained. After a solid debugging session, I realized the issue was nothing more than an indentation error. Yes, a few misplaced spaces broke the entire automation! That moment reinforced a powerful DevOps truth — YAML is unforgiving, and even minor formatting issues can halt your deployment pipeline. Precision is everything. Here’s the clean, working docker-compose.yml I ended up with: version: '3' services: web: image: httpd:latest container_name: httpd ports: - "8083:80" volumes: - /opt/security:/usr/local/apache2/htdocs This setup successfully launched the httpd container with port mapping and volume configuration in a single command: docker compose up -d Today’s insight: 👉 Small mistakes teach big lessons. In DevOps, precision and patience are as important as code and automation. #Day44 #100DaysOfDevOps #Docker #DockerCompose #DevOps #Automation #Containerization #YAML #Apache #WebServer #LearningInPublic #Debugging #ProblemSolving #Linux #InfrastructureAsCode #SRE #DevOpsCulture #CloudComputing #EngineeringExcellence #BuildInPublic #ContinuousLearning

  • graphical user interface, text

To view or add a comment, sign in

Explore content categories