compose-watcher
Project description
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
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
Project details
Release history Release notifications | RSS feed
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.0.2.tar.gz
(4.0 kB
view details)
File details
Details for the file compose-watcher-1.0.2.tar.gz
.
File metadata
- Download URL: compose-watcher-1.0.2.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
5572e90884280e30d43a5d074b9ceff3bc9f2f05220c756e762cea24d09219f1
|
|
MD5 |
a6d9c097c88a2b6cdf5c02c0b68f77a6
|
|
BLAKE2b-256 |
ce5ed4277acfc09feaaa641812c5734c4deff19b4a068d3e13775c381944c03b
|