Skip to main content

compose-watcher

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

Install

pip3 install compose-watcher

Usage

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'

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

Then execute compose-watcher to watch changes

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

Metadata

Release files for compose-watcher 1.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for compose-watcher 1.1.4
File Size Uploaded Provenance Actions
compose-watcher-1.1.4.tar.gz 4.3 kB Without provenance Details for compose-watcher-1.1.4.tar.gz

Release files / compose-watcher-1.1.4.tar.gz

Download URL compose-watcher-1.1.4.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
c2ce56499a09c6baac032ce963a49be08da0d6802eb46d2ea6c700a22d9eae6f
BLAKE2b-256 checksum
How to use checksums
6138157bb524ee8cc410dd1a8181c6f3b68ee6ea0f5dab1dec36c3285627a4ea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8

Security for compose-watcher 1.1.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page