Development Workflows and Best Practices

LEVEL 0

The Problem

You’re developing locally. You make code changes. You want to see the result. But your code is inside a container. Do you:

  • Rebuild the image every time?
  • Restart the container every time?
  • Somehow reload code without restarting?

You have a database with test data. You stop Compose with docker compose down. When you start again, the data is gone.

You want to run tests. You want to run migrations. You want to open a shell in a container.

Development workflows with Compose require specific patterns.