Last active
June 1, 2021 13:01
-
-
Save mikedamm/53dc6a78b976eeac88893427424c2527 to your computer and use it in GitHub Desktop.
Docker auto-restart on file change
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while inotifywait -e close_write -r . ; do docker-compose build --no-cache ; docker-compose up -d --force-recreate ; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment