Skip to main content

Community setup

On the Community plan the stage_coach module in your Drupal admin talks straight to the Stagecoach server you install in your cluster. Nothing goes through stagecoach.sh; registering the cluster in the portal is optional.

  1. Install the server

    With Helm, in community mode. List the environments it operates and where snapshots go; the chart creates the snapshot claim in each namespace, a ClusterIP Service open only to your sites' namespaces, and an API token and a release token (kept across upgrades).

    helm repo add stagecoach https://charts.stagecoach.sh
    helm upgrade --install stagecoach stagecoach/stagecoach \
      -n stagecoach --create-namespace -f values.yaml
    mode: community
    environments:
      - {name: prod, namespace: mysite, host: example.com, rank: 30, production: true}
      - {name: dev, namespace: mysite-dev, host: dev.example.com, rank: 10}
    workload: drupal      # your Drupal Deployment
    container: drupal     # and its container
    snapshots:
      store: pvc://stage-coach-snapshots   # or s3://bucket/prefix (needed to copy files)
    # Optional: list this cluster in the portal with a Cluster token.
    # stagecoach: {token: stg_live_..., clusterName: prod}

    Copy-down reads the source database's credentials from a Secret stage-coach-source-<source namespace> in the target namespace (a read-only user is best); the install notes list any that are missing.

  2. Connect the module

    composer require 'drupal/stage_coach:^1.0@alpha'
    drush en stage_coach -y

    At Configuration → Development → Stagecoach choose Self-hosted and enter the URL the install notes print, e.g. http://stagecoach.stagecoach.svc:8080. The token goes in settings.php, never in config (a copy-down would carry it):

    // kubectl -n stagecoach get secret stagecoach-api -o jsonpath='{.data.api-token}' | base64 -d
    $settings['stage_coach_api_token'] = getenv('STAGE_COACH_API_TOKEN');
  3. Record releases from CI

    With the chart's release-token, from a runner that can reach the Service (allow its namespace with api.extraIngressFrom):

    curl -fsS -X POST http://stagecoach.stagecoach.svc:8080/api/releases \
      -H "Authorization: Bearer $STAGE_COACH_RELEASE_TOKEN" \
      --data-urlencode "image=ghcr.io/you/site@sha256:..." \
      --data-urlencode "ref=$GITHUB_REF" --data-urlencode "sha=$GITHUB_SHA"

Moving to Hosted later keeps your releases, snapshots and history: see Moving from Community.

stagecoach © 2026 stagecoach.sh

Acquia is a registered trademark of Acquia Inc. Pantheon is a trademark of Pantheon Systems, Inc. Drupal is a registered trademark of Dries Buytaert. stagecoach is not affiliated with, sponsored or endorsed by these companies.