canasta start

From Canasta Wiki

canasta > start

canasta start

Start a Canasta instance

Synopsis

Start the Docker containers for a Canasta instance. Before bringing the stack up, COMPOSE_PROFILES in .env is reconciled from the instance's feature flags so optional components start or stay down based on their current setting:

  • CANASTA_ENABLE_VARNISH (default true) — Varnish cache
  • CANASTA_ENABLE_OBSERVABILITY (default false) — OpenSearch, Logstash and OpenSearch Dashboards log stack
  • CANASTA_ENABLE_ELASTICSEARCH (default false) — Elasticsearch
  • CANASTA_ENABLE_REDIS (default false) — Redis, a main object cache the web server and maintenance scripts share

If the instance has development mode enabled, Xdebug starts automatically. Use canasta devmode enable or canasta devmode disable to toggle development mode; use canasta config set <FLAG>=true|false to adjust the optional components.

The command returns once the web container reports healthy, so a command run immediately afterward does not race the image's startup. An image that declares no healthcheck is not waited on. If the web container's startup composer update failed, so the packages in config/composer.local.json are not installed, a warning names the failure and how to read its details.

On Docker Compose, each wiki's API is then requested through the HAProxy edge on the instance's host, and a warning names each wiki that does not answer within a minute, with the reason. Any response from behind the edge other than a server error (5xx) counts as an answer, so a private or password-protected wiki answers too. The certificate is not checked. The CLI run with canasta-docker does not make these requests for an instance on its own host.

canasta start [flags]

Examples

canasta start

Flags

Flag Shorthand Description Default Required Orchestrator
--id -i Canasta instance ID * Both

* Defaults to the Canasta instance matching the current directory, if any.

Global flags

Flag Shorthand Description Default Required Orchestrator
--help -h Show help message and exit Both
--verbose -v Enable verbose output Both