My CI pipeline failed on the first push.
Not because of a big mistake.
Because of a layer conflict in my Dockerfile that
only showed up in a clean environment.
Locally — everything worked.
CI — red on the first run.
That one failure taught me more about Docker
than a week of tutorials.
Here's exactly what I built and what happened.
The Project
A Flask + PostgreSQL app running in Docker Compose.
It tracks page visits and stores the count
in a real PostgreSQL database.
Browser → Flask Container → PostgreSQL → pgdata Volume
Multi-container setup. Persistent storage.
Environment variables via .env.
Health checks and restart policies.
Every decision is production-style —
even though it's a learning project.
Why I Added CI
Before CI, my workflow looked like this:
Make a change
↓
docker compose down
↓
docker compose build
↓
docker compose up -d
↓
Open browser, check manually
↓
Repeat
This works for one or two changes.
But when you're pushing regularly —
manually checking every time…