Skip to main content
Set up Coral with Docker Compose, with SQLite or Postgres as its database. <coral-host> is the placeholder for the domain of your Coral deployment.

Before you start

  • Hostnames. Coral serves the UI, its auth server and its MCP server on three public HTTPS URLs. This guide uses <coral-host>, auth.<coral-host> and mcp.<coral-host>. If you only have one hostname, see Using a single hostname.
  • OIDC client. Create an OAuth/OIDC client at your identity provider and register this redirect URI:
    Coral derives the redirect URI from listeners.auth.public_url. There is no separate setting for it.
  • Images. latest is the newest stable release. To pin a version, use a tag from the releases page without the leading v, such as ghcr.io/withcoral/coral:1.0.0. The images are built for linux/amd64 only. On an arm64 host, such as an Apple Silicon Mac, add platform: linux/amd64 to the coral and coral-web services to run them under emulation. Under emulation with Rosetta, search matches by words only. See Older CPUs.

Deploy

  1. Create a compose file in your working directory with these contents:
  • The configuration reference describes the configuration options.
  • This compose file exposes no ports. For TLS termination, do one of these:
    • Add a TLS termination container, such as Caddy, to this compose file.
    • Expose the ports 14556 (MCP), 8779 (auth) and 3000 (UI) to your reverse proxy, so that it can forward calls to Coral.
  • Do not expose Coral’s gRPC port outside the compose network. The gRPC server is plaintext, with no encryption.
Coral saves the SQLite database files and the encryption key for sensitive data in the coral-state volume.
  1. Create a .env file that holds the credentials that Coral uses:
  1. Start Coral with docker compose up -d. Both images have a built-in health check, and condition: service_healthy waits for it. If coral-web reports dependency coral failed to start, the cause is in the coral container. Run docker compose logs coral.
  2. Start your reverse proxy for TLS termination. If you don’t have one, merge this Caddy service into the compose file:
Use this Caddyfile:
  1. Open the Coral UI in your browser at https://<coral-host>. After you create your first workspace, follow the instructions in the Coral UI to connect an MCP client. Each workspace has its own MCP endpoint:

Choosing the organization owner

bootstrap_owner_subject is the sub claim that your identity provider issues for the user who becomes the organization owner. It is not an email address. With Google, it is a numeric account ID. Other providers usually show it as the user ID in their admin console. You can also read it from the sub claim of an ID token issued to that user.
  • Set it before that user signs in to Coral for the first time. Coral assigns the role at a user’s first sign-in and does not change the role of a user who has already signed in.
  • If you do not know the value yet, remove the line. An empty string is not valid and stops Coral from starting. Without an owner, Coral disables organization admin operations.

Offering a Coral plugin

The onboarding prompt can tell some MCP clients to look for a Coral plugin. To offer one, list those clients in AGENTS_WITH_AVAILABLE_PLUGINS on coral-web, separated by commas:
  • A listed client that can find and install plugins looks for the plugin. It installs the plugin only after your user confirms. Then it adds the MCP server through the plugin.
  • A listed client adds the MCP server directly if it cannot find or install the plugin, or if your user declines. Every other client adds it directly too.
  • The list only advertises a plugin. Coral does not check that the plugin exists.
  • Leave the variable unset to offer no plugin.
  • coral-web reads the variable at startup. List at most 8 names. Each name has up to 32 letters, digits, and single spaces, dots, hyphens or underscores between them. Any other value stops coral-web from starting.

Using a single hostname

Each public_url is an origin: a scheme, a host and an optional port, with no path. You cannot serve Coral under a path prefix. If you only have one hostname, as with Tailscale Serve, put the MCP server and the auth server on the hostname itself, and give the UI its own HTTPS port: Keep MCP and auth on port 443. Claude Desktop and Claude on the web connect from Anthropic’s servers, and those servers do not reach any other port. Your reverse proxy must send the auth server’s paths to the auth listener, and every other path to the MCP listener. With Caddy, use this Caddyfile:
Then add "8443:8443" to the ports of the Caddy service. With this layout:
  • The redirect URI to register is https://<coral-host>/auth/oidc/callback.
  • Your users open the UI at https://<coral-host>:8443.
  • A workspace’s MCP endpoint is https://<coral-host>/workspaces/<workspace-id>/mcp.

Upgrade

Read Upgrade Coral first. Run these commands in the directory of your compose file.
  1. Back up Coral’s state. With Postgres, take a dump or a snapshot of the database, and keep your .env file with it. With SQLite, stop Coral and archive the state volume:
  2. If your compose file pins a version, such as ghcr.io/withcoral/coral:1.6.0, change both image tags to the new version.
  3. Pull the new images and start them:
To return to an earlier version with SQLite, stop Coral, set both image tags to that version, and restore the archive before you start it:

Troubleshooting

  • coral-web cannot reach the auth server. coral-web calls the auth server at CORAL_WEB_AUTH_ISSUER, its public URL, from inside the compose network. That hostname must resolve and route from the containers, not only from your browser.
  • /.well-known/openid-configuration returns 404 on the auth server. This is expected. Coral’s auth server is an OAuth authorization server for the UI and MCP clients, not an OpenID provider. Its metadata is at /.well-known/oauth-authorization-server.