Skip to main content

hivepaas compose

Docker Compose files: their services as apps

hivepaas compose [command]

hivepaas compose up​

Make a project of a Docker Compose file, its services as apps, or with -p add them to the project's environment -e (production by default, made when missing), as the dashboard's import does. The files it reads are sent from beside it; a variable with no value is asked, or given with --var. The plan is shown first - each service as the app it becomes, then the issues - and made once confirmed: asked at a terminal, --yes elsewhere. The apps are deployed and waited for unless --no-deploy or --no-wait.

hivepaas compose up [flags]

Examples:

hivepaas compose up
hivepaas compose up -f stack/compose.yaml -p shop -e staging --var DB_PASSWORD=$DB_PASSWORD --yes

Flags:

FlagDescription
--env-file stringthe .env file; the one beside the compose file by default
-f, --file stringthe compose file; compose.yaml and the like here by default
--name stringa new project's name; the compose file's by default
--no-deploymake the apps, and do not deploy them
--no-waitdo not wait for the deployments
--profile stringArraya profile whose services are made too; repeat for more
--timeout durationhow long to wait for the deployments (default: 30m0s)
--var stringArraya variable of the compose file, K=V; repeat for more
-y, --yesdo not ask: for a script

The global flags apply to every command.