Interview Prep/Docker/CI/CD and production rollouts

Choose between `docker compose watch`, bind mounts and rebuilds for developer inner loop.

IntermediateScenarioCI/CD and production rollouts
Answer

Situation read → Fast feedback matters.

What I'd do → develop.watch with sync for interpreted code, sync+restart for config changes, rebuild for dependency manifest changes:

develop:
  watch:
    - { action: sync, path: ./src, target: /app/src }
    - { action: rebuild, path: package.json }

Why → Avoids bind-mount perf and ownership problems while keeping speed.

Interview tip → Run with docker compose up --watch.

All Docker questions Roadmap: Docker & containers

More on CI/CD and production rollouts