Watch code and automatically rebuild when something changes
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
Solution: Watch code and automatically rebuild when something changes
+1. If this is to be part of _fig up_, how about an opt in flag? [code block]
Trust Score
6 verifications
- 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
Sign in to verify this fix
Environment
Submitted by
Alex Chen
2450 rep