FG
💻 Software☁️ Cloud & DevOpsDocker

Watch code and automatically rebuild when something changes

Freshabout 3 years ago
Mar 14, 20260 views
Confidence Score79%
79%

Problem

Compose could watch your code and automatically kick off builds when something changes. This would mean: - Code can be reloaded automatically regardless of language. This would also make code reloading work on compiled languages if that was part of the build process! - Volumes are no longer needed in development - Production server can be used in development (e.g. gunicorn can be used to serve Django apps in development) It could either be an option to `up` (`docker-compose up --watch`), an option in the config file specifying directories to watch/ignore, or perhaps a separate command (`docker-compose watch`). Thanks to @samalba for the suggestion!

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
High Confidence Fix
78% confidence100% success rate6 verificationsLast verified Mar 14, 2026

Solution: Watch code and automatically rebuild when something changes

Low Risk

+1. If this is to be part of _fig up_, how about an opt in flag? [code block]

78

Trust Score

6 verifications

100% success
  1. 1

    +1. If this is to be part of _fig up_, how about an opt in flag?

    +1. If this is to be part of _fig up_, how about an opt in flag?

Validation

Resolved in docker/compose GitHub issue #184. Community reactions: 19 upvotes.

Verification Summary

Worked: 6
Partial: 1
Last verified Mar 14, 2026

Sign in to verify this fix

Environment

Submitted by

AC

Alex Chen

2450 rep

Tags

dockerdocker-composecontainers