Skip to content
This is the documentation for v0.2. Read the latest.

dicer compose up

Create and start the project’s instances

Synopsis

Creates the networks and volumes the services use, pulls the images the host does not have, and brings each service’s instance up to date with the file: creating the missing ones, recreating those whose definition has changed, and starting those that are stopped. Services start after those they depend on, and those that do not depend on each other start at the same time.

Naming services brings up those and what they depend on.

The instances’ consoles are written out until they all stop, each line marked with its instance’s name. Ctrl+C stops them; a second Ctrl+C stops waiting. With -d they run in the background instead.

dicer compose up [SERVICE...] [flags]

Examples

  dicer compose up -d
  dicer compose up -d --wait
  dicer compose up web
  dicer compose up -d --force-recreate --remove-orphans

Options

  -d, --detach           Run in the background: return once the instances have started
      --wait             Return once every instance is running, and healthy if it is checked (implies -d)
      --force-recreate   Recreate every instance, even those whose definition has not changed
      --no-recreate      Leave instances that already exist as they are, even if their definition has changed
      --remove-orphans   Delete the project's instances whose service is no longer in the file
      --pull string      When to pull images: missing, always or never (default "missing")
  -h, --help             help for up

Options inherited from parent commands

  -D, --debug              Trace every call to the daemon on stderr (or set $DICER_DEBUG)
  -r, --remote string      Daemon to talk to: a remote's name, or an address (unix:///PATH or HOST:PORT) (default $DICER_REMOTE, then the current remote, then local)
      --timeout duration   Give up on a call to the daemon after this long, e.g. 30s (0: never; streams such as logs -f and exec are not bounded)

SEE ALSO

  • dicer compose - Run a project of instances described in a compose file