Using go:
$ go get github.com/avoronkov/composeman
- Start all services (add
-d
to run in background):
$ composeman up
- Stop all services (add
-v
to remove anonymous volumes):
$ composeman down
- Specify list of services to start:
$ composeman up -d my-service
(Note: starting dependent services is not supported yet.)
-
image
-
environment
-
env_file
-
ports
-
volumes
-
command
-
build
-
context
-
target
-
- Handle "
build: args
" directive.
$ go test -coverprofile=coverage.out -coverpkg=github.com/avoronkov/composeman/... ./...
...
ok github.com/avoronkov/composeman/tests 0.858s coverage: 48.7% of statements in github.com/avoronkov/composeman/...
$ go tool cover -html=coverage.out