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

dicer compose

Run a project of instances described in a compose file

Synopsis

Runs the instances a compose file describes, with the networks and volumes they use.

The file is dicer-compose.yaml or compose.yaml, in this directory or the nearest one above it that has one, unless -f names another. The project is named by -p, else the file’s name key, else its directory, and its instances are named PROJECT-SERVICE.

The project’s flags go before the command: dicer compose -f FILE up.

dicer compose [flags]

Examples

  dicer compose up -d
  dicer compose ps
  dicer compose logs -f web
  dicer compose exec db psql -U postgres
  dicer compose -f staging.yaml down

Options

      --env-file string            File of variables to substitute (default: .env in the project directory)
  -f, --file string                Compose file (default $DICER_COMPOSE_FILE, then dicer-compose.yaml or compose.yaml here or above)
  -h, --help                       help for compose
      --project-directory string   Directory relative paths are taken from (default: the file's)
  -p, --project-name string        Project name (default $DICER_COMPOSE_PROJECT_NAME, then the file's name, then its directory's)

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