manage multiple docker-compose files (stacks) in one place using an intuitive command line interface.
Run the following command to install docker-compose-manager:
bash <(curl -sSL https://raw.githubusercontent.com/naskio/docker-compose-manager/main/install.sh)
Alternatively, you can specify a different version:
bash <(curl -sSL https://raw.githubusercontent.com/naskio/docker-compose-manager/main/install.sh) multi
bash <(curl -sSL https://raw.githubusercontent.com/naskio/docker-compose-manager/main/install.sh) local
bash <(curl -sSL https://raw.githubusercontent.com/naskio/docker-compose-manager/main/install.sh) dialog
bash <(curl -sSL https://raw.githubusercontent.com/naskio/docker-compose-manager/main/install.sh) arrow-keys
bash <(curl -sSL https://raw.githubusercontent.com/naskio/docker-compose-manager/main/install.sh) arrow-keys-v2
bash <(curl -sSL https://raw.githubusercontent.com/naskio/docker-compose-manager/main/install.sh) ps3
Available versions:
multi
: run one-command on multiple docker-compose files (stacks), use dialog for selection. (default version)local
: same asmulti
, but use local filesdocker-compose.local.ya?ml
instead of default files.dialog
: Run one command on one stack, use dialog for selection.arrow-keys
: Run one command on one stack, use arrow keys for navigation.arrow-keys-v2
: Run one command on one stack, use arrow keys for navigation - version 2.ps3
: Run one command on one stack, use ps3 for selection.
Check if docker-compose-manager has been installed correctly:
which dcm
Inside the folder where you want to manage docker-compose files, run the following commands:
dcm
up
: start all services in the stack.down
: stop all services in the stack.restart
: restart all services in the stack (up
thendown
).resync
: fetch the latest code from GitHub then restart all services in the stack (down
,git pull
thenup
).upgrade
: upgrade images of all services in the stack (down
,pull
thenup
).
Use arrow keys
and space
to navigate and select from the list, and enter
to validate.
Run the following command to uninstall docker-compose-manager:
bash <(curl -sSL https://raw.githubusercontent.com/naskio/docker-compose-manager/main/uninstall.sh)
Pull requests are welcome! For any bug reports, please create an issue.
Start by reading the contributor guideline.