Command - docker:compose:up
How to use the `docker:compose:up` command
We assume you are already familiar with the docker basics.
The command docker:compose:up
builds, (re)creates, starts, and attaches to containers for a service.
Unless they are already running, this command also starts any linked services. The command acts
as a wrapper around the default command: https://docs.docker.com/compose/reference/up/.
Description:
Start docker compose service(s).
Usage:
docker:compose:up [options] [--] [<services>...]
docker:compose:up
This command is a wrapper around the default `docker-compose` command. For more information see https://docs.docker.com/compose/reference/up/
For security, simplicity and cleanup purposes, the following restrictions are in place:
- Bind volumes are only allowed to directories and files with both read and write permissions. And read permissions for the whole path
- Orphan containers are always removed with --remove-orphans option
- Building containers must be done on a separate environment, the --build flag is not supported
- All exposed ports must be mapped between 10000-50000
Arguments:
services Services
Options:
-d, --detach Detached mode: Run containers in the background, print new container names. Incompatible with --abort-on-container-exit
--force-recreate Recreate containers even if their configuration and image haven't changed
--no-recreate If containers already exist, don't recreate them. Incompatible with --force-recreate and -V
--no-start Don't start the services after creating them.
--abort-on-container-exit Stops all containers if any container was stopped. Incompatible with -d.
--scale=SCALE Scale SERVICE to NUM instances. Overrides the `scale` setting in the Compose file if present. (--scale SERVICE=NUM) (multiple values allowed)
-t, --timeout=TIMEOUT Use this timeout in seconds for container shutdown when attached or when containers are already. Incompatible with -d. running.
-f, --file=FILE Specify an alternate compose file [default: "docker-compose.yml"]
-p, --project-name=PROJECT-NAME Specify an alternate project name
-h, --help Display this help message
-q, --quiet Do not output any message
-V, --version Display this application version
--ansi Force ANSI output
--no-ansi Disable ANSI output
-n, --no-interaction Do not ask any interactive question
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug