Skip to content

ngorke/docker-compose-watcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go Report Card Build Status Release License

About

docker-compose-watcher is an application that automatically rebuilds and restarts Docker Compose services, based on docker-compose.yaml file(s) and the specified source directories.

When the tool read the Docker Compose file, it looks for a specific label, which tells it where to look for changes. It then begins to watch both the compose files and the directory in the label for changes. A change in these files causes a rebuild and restart of the services.

Usage

Run the docker-compose-watcher binary with the -f or --file flag(s), which specify the docker-compose files. You simply pass the same files you would pass when running docker-compose.

If you want docker-compose-watcher to watch for source directory changes, add a docker-compose-watcher.path label to the service (see example below).

Example

./repos/project/docker-compose.yml:

version: "3"
services:
  my-service-name:
    build: .
    labels:
      docker-compose-watcher.path: "./"

Command

docker-compose-watcher -f ./repos/project/docker-compose.yml

Help

Run docker-compose-watcher --help to print the help.

About

Tool for automatic rebuilds and restarts of containers in Docker Compose.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages