Skip to content

Run Foliwake for a team ​

One Foliwake instance in Docker serves a team: the dashboard, the CLI's API, every site live and in preview, website history, the Drupal editor integration and, if you want, a Varnish cache. This page lists what you run around it, and the routine.

What the package runs ​

foliwake docker install starts one container (and, if you choose them, Jaeger and Varnish beside it). Everything it keeps is in its data volume. See install with Docker.

HostServed by
foliwake.example.comDashboard, CLI sign-in and API
<site>.live.example.com and your sites' own domainsLive sites (through the instance's Varnish with --cache varnish)
<site>.preview.example.com, <branch>--<site>--<org>.preview.example.comPreviews, for signed-in members
r-<release>--<site>.history.example.comEarlier versions, for signed-in admins
review.example.comDrupal editor integration, when /data/foliwake.connections.json exists

What stays outside the package ​

  • The HTTPS proxy. Certificates for the hosts above, with wildcard DNS (*.live, *.preview, *.history) and wildcard certificates (Caddy with its DNS plugin, for example). It passes every path through and keeps the Authorization header. With Varnish, the live hosts go to the cache port and the rest to the server port (a Varnish of the instance). Extra protection such as a Basic login for a demo is yours to add here; previews already need a signed-in member.
  • The CMS. Drupal, its database and cron run in their own Compose project or host. The container must reach Drupal's address (not 127.0.0.1 from inside the container): put them on a shared Docker network or use the host's address, and allow a private address in the connection's freshness.allowPrivateHosts.
  • Object storage. An S3 or R2 bucket, if you use one instead of the volume, and its backups.
  • These docs. The documentation site is built and hosted separately.

The routine ​

WhenWhat
New engine versionfoliwake docker update: backup, switch, cached HTML dropped. The rollback command is printed.
Before risky workfoliwake docker backup (the archive holds secrets: keep it private).
A new frontend repositoryfoliwake site create <id> --repository https://github.com/…, a CI key (account keys create), a read token as <SITE>__CODE_TOKEN; the repository's workflow runs code deploy. See release code from CI.
A new memberfoliwake account invite.
A key leakedfoliwake account keys revoke <id>; a token of a source: foliwake credential set with a new value.
A Drupal connection changedEdit /data/foliwake.connections.json, then foliwake docker restart.

See current limitations before you plan around a feature.