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 downOptions
--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
- dicer - Run virtual machines from container images
- dicer compose config - Check the compose file and show it resolved
- dicer compose down - Stop and delete the project’s instances and networks
- dicer compose exec - Run a command inside a service’s running instance
- dicer compose logs - Show the consoles of the project’s instances
- dicer compose ps - List the project’s instances
- dicer compose pull - Pull the services’ images
- dicer compose restart - Restart the project’s instances
- dicer compose start - Start the project’s stopped instances
- dicer compose stop - Stop the project’s running instances
- dicer compose up - Create and start the project’s instances