Skip to main content


Project description


Cli that restarts you docker compose services when a file inside one of its volumes changes To use with compiled languages place the compilation step in the command field.

Example usage

  • graphql api restart when schema file changes
  • Mongoke restarts when config schema changes
  • Nodejs container restarts when the src folder changes, recompiling with tsc


pip3 install compose-watcher


Use the directories you want to track as service volumes Also consider using init: true in the compose service definition for faster killing of processes. To not stop the docker-compose logs command, there should be always a running container

version: '3'

    build: node_api
    command: sh -c 'tsc --incremental && node index.js'
      - ./node_api/src:/src

Then execute compose-watcher to watch changes

compose-watcher -f docker-compose.yml --timeout 5

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

compose-watcher-1.1.4.tar.gz (4.3 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page