This repository has been archived by the owner on Jun 16, 2021. It is now read-only.
Proposal: libcompose-cli service
commands (Experimental)
#157
Labels
Background
docker compose/libcompose helps in managing multi-container apps. But for managing such apps, user need to know, config of each app and its location.
Whereas IMHO, once application instance is created, it belongs to Docker System. So it management should be independent of location of config file, which was used for its creation.
Current Solutions
Solutions like UCP, Kitematic and other third party GUI (Mostly) solution provides solution for working on services.
But none of them works for command line users.
Why libcompose?
Since, libcompose is targeted as library for third party solutions, implementing such feature ensures, workflow and compatibility of service management consistent across all.
Proposal.
With
libcompose-cli create/up/scale
commands, yml configuration of services, yml configuration of services can be copied to compose-repo , with few extra attributeslibcompose-cli rm
command will remove the yml configuration of removed services.compose-repo: (default) folder on local file-system (
~/.compose/
), configurable in~/.compose.yml
.New commands
libcompose-cli service ls
: List all services in system and its state (Running/Stopped/Down)libcompose-cli service show [service-name]
: Show details of service. Output similar tolibcompose ps
libcompose-cli service stop/rm/start/ etc
: These commands parallel tolibcompose stop/rm/start
etc.libcompose-cli service history
: While application life cycle, on events of changes likeports/ network/ storage/scale
can be recorded inhistory files
. Such data can be profiled here and shown.libcompose-cli service version
: [Need more thoughts] This could be a new feature itself, where multiple versions of one application can be created. So new version can be deployed and one error, rollback.The text was updated successfully, but these errors were encountered: