Skip to content

frafra/container-restart-onfilechange

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example project to demostrate restarting of services inside Docker container using watchexec.

echo "Initial content" > data/file.txt
docker compose up

Then edit data/file.txt again, save the file, and observe the container restarting its service.

About

Demonstrate how a container can restart its command when a file changes using entr

Topics

Resources

Stars

Watchers

Forks