The week I started my role on the platform in February happened to coincide with a new developer joining the team. The setup documentation was a 14-page wiki page last updated in 2023. The PHP version didn't match, composer blew up because of a missing extension, MySQL's charset setting turned out to be different... It took our colleague three and a half days to make his first commit. On the same team two months later, after the environment had moved to docker compose, the developer who joined was opening a PR on the afternoon of his first day.
"Works on my machine" is one of the most expensive sentences in our industry. Because its bill never shows up as a single line item, nobody adds it up: setup days, "which version do you have?" message threads, ghost bugs that reproduce on only one person's machine, remote desktop sessions into the laptop of the guy who's on vacation. Docker doesn't zero out that bill, but it crosses off most of the line items.
Environment Setup Should Be Code, Not Documentation
The fate of a setup document on a wiki is sealed: it's correct the day it's written, partially correct three months later, and actively harmful a year later. Because updating the document is nobody's job. compose.yaml is a different kind of contract: if it doesn't work, CI breaks, and when CI breaks, someone fixes it right away. Once the environment definition is code, it has no choice but to stay current; the whole point is establishing that obligation.
The standard in our projects is this: clone the repo, run docker compose up, grab your coffee. Database, Redis, queue, mail catcher (let's take a moment to fondly acknowledge the place Mailpit has taken in our lives), all up and filled with seed data. We no longer tell newcomers "set up the environment"; we say "run compose up, and shout if you get stuck." Hardly anyone shouts.
The subtle part here is seed data. An environment that comes up with an empty database is half the job; the developer spends half a day entering data by hand just to see a meaningful screen. Invest in the seed script: realistic but anonymized data, records covering a few different scenarios. That investment pays back with every new developer and every "let me try it in a clean environment" moment.
A little-known blessing of Compose is profiles: move the services not everyone needs every day (Elasticsearch, the reporting service, that massive analytics container) into a separate profile so the standard up stays light, and whoever needs them can turn them on with a single flag. Bringing up all eight services every morning is the main cause of the developer misery you know from the sound of your laptop fan.

Does It Have to Match Production Exactly?
A frequent question: "We run Kubernetes in prod, should we set it up locally too?" No. The goal of the local environment isn't to be a miniature of production but behavioral equivalence: the same PHP or Node version, the same database engine and major version, the same critical configuration. Trying to imitate the orchestration layer locally creates more problems than it solves.

On the other hand, it's worth building parallels on the image side: the Dockerfile you use locally and the Dockerfile that runs tests in CI and produces the production image should come from the same family. Producing both a development and a production target from a single file with a multi-stage build is our standard pattern; it dries up the biggest source of "the test that passed locally blew up in CI" surprises.
But don't compromise on version parity. We watched up close as a team that said "MySQL 8.0 locally, 8.4 in prod, what's the difference" lost half a day to a single behavior change between the two versions. Being able to change one line in the compose file the moment you spot the difference and roll it out to the entire team at once is what Docker is all about in the first place.
One warning here: if a compose file is written once and forgotten, it too drifts toward the fate of the wiki document. If Redis was added to production, it gets added to compose as well; make this discipline part of code review, and don't leave it to anyone's goodwill.
Slow on Mac, Weird on Windows: Let's Talk Facts
To be honest, Docker's biggest friction in local development has always been performance, especially file syncing on macOS. A large Laravel project crawling on a Mac over a volume mount was a running joke for years. Today the picture is much better: improvements on the VirtioFS side, alternative runtimes (we use OrbStack on a few projects, and the team is happy) and smartly separated volumes solve the problem to a large extent. Moving heavy folders like vendor and node_modules into named volumes, separate from the host, is still the single most effective trick.
On the Windows side, WSL2 fixed things, but with one condition: project files have to live inside the WSL file system. The slowness of setups that keep files on the Windows side and mount them through WSL is the classic trap that leads people to the wrong verdict that "Docker is bad."
There are also small details that shape daily life. Pin your versions; a compose file that says mysql:latest will quietly change everyone's environment one morning. Define healthchecks for your services and tie dependencies to them; otherwise the application tries to connect before the database is even up and produces confusing errors on first startup. For port conflicts, use ports prefixed via .env; on teams that run two separate projects' environments on the same machine, this small discipline saves a few curses a day.
A quick reminder about secrets, too: .env.example goes into the repo, the real .env never does, and API keys don't get embedded in the compose file. A production key written into a container in the spirit of "it's just the local environment" leaking into the repo history is one of the most unpleasant accidents to clean up. Gather team commands behind a single door as well; we have the same task file in every project: install, test, reset. Whichever project you switch to, the muscle memory is the same.
Let me also note the classic data persistence accident: that innocent -v flag in docker compose down -v deletes the volumes too, meaning the test data you've been working on for three days. It happens to everyone on the team once, and then nobody forgets. Our solution is to tie data resets to a deliberate command: make reset wipes and reseeds, and no other everyday command touches the data.

Agents Now Use the Same Environment
The past year has taught us a brand-new reason as well. Agentic development has become an everyday thing; coding agents run tests, try migrations, spin up services and read logs. To be able to tell an agent "run the tests," the environment has to be set up with a single command, deterministically. A human developer asks about missing documentation and learns; an agent either fails or, worse, guesses and acts on its guess.
On our team, every agent session runs in its own isolated compose environment. If the agent breaks something, the environment goes in the trash and a new one is up in thirty seconds. That convenience shut down the "but it doesn't work in the agent's environment" era, which could have been the last stronghold of "works on my machine," before it even began.
If environment setup on your team still takes days, or "works on my machine" has become a weekly ritual, here's my consolation: moving an existing project to a Compose-based standard is usually a week's work, and it pays for itself within the first month. I love talking about transformations like this; the contact page is open.