How It Fits Together
Self-Hosted Only
An instance is five containers. The same containers serve every way of running the product; a self-hosted instance is the hosted one, installed by you.
| Container | What It Is | Talks To |
|---|---|---|
| web | The application’s pages, and the platform console’s on its own host name, behind an unprivileged web server. Passes /api and the live channel to the API. On the cloud routes the API serves the pages itself and this container is not used |
api |
| api | The API (ASP.NET Core). The only part that reads or writes the database | db, cache, worker; optionally the outside services under “What Goes Out” |
| worker | The engine: checks models and builds their pages. Runs one pinned engine release, verified by its fingerprint when the image is built | nothing |
| db | PostgreSQL 18 | nothing |
| cache | A Redis-compatible cache, Valkey: edit locks, presence, revoked tokens, and the live channel between API instances | nothing |
Networks
Section titled “Networks”- The worker sits on an internal network of its own. The API can reach it; it can reach nothing, the internet included.
- The database and the cache sit on a second internal network that only the API joins.
- Only the web container is published, and on the host’s loopback address: put your own web server or load balancer in front of it, and end TLS there.
What Goes Out
Section titled “What Goes Out”Nothing is needed from the internet to run. Only the API reaches out, and only for what you or an organization set up:
- An AI vendor, if an organization uses the assistant. See AI settings.
- An identity provider: an organization’s for single sign-on, Microsoft, Google and Apple when their sign-in is registered, and the operators’ own.
- Amazon SES, if the instance sends e-mail. See Outgoing e-mail.
- Stripe, if plans are sold. See Plans and billing.
- Webhooks that organizations’ administrators add. See Webhooks.
- Your cloud’s key service, if the key-encryption key lives there. See Keys and key management.
- The operators’ breach check at
api.pwnedpasswords.com, if it is on, and DNS, when an organization’s e-mail domain is checked.
Run without an outside connection gives the setting that keeps each one off.
Two Host Names
Section titled “Two Host Names”The workspace, where your people work, and the platform console, where your instance’s operators look after it, answer on two host names of their own, such as forge.example.com and ops.example.com. An operator’s sign-in works only on the console’s host, and nothing of the workspace answers there. See The platform console.
What You Must Keep Safe
Section titled “What You Must Keep Safe”- The signing key (
Auth:SigningKey), which signs access tokens. - The folder of keys (
Assistant:KeysPath). It holds the keys that protect every organization’s stored credentials and, unless it lives in a key service, the key-encryption key that wraps every organization’s data keys. The files in it are not encrypted, so only the API’s account may read the folder. Back it up separately from the database: the database without the folder gives nobody a usable secret. Every API instance that shares a database must share this folder. See Keys and key management. - The first operator’s password, written once to the folder of keys at the first start. Sign in with it, choose your own, and delete the file.
- The database’s password and the cache’s.
Checking It Is Up
Section titled “Checking It Is Up”GET /api/health answers 200 once the API has applied its database scripts and can take requests. Its answer says whether the database answers and which engine release the worker runs. It needs no sign-in, so a load balancer can use it.
Guides
Section titled “Guides”- Choose a route: one server, Kubernetes or your cloud’s serverless containers
- Docker Compose on one server
- AWS, Azure and Google Cloud
- Validate a deployment, step by step, then on AWS, Azure or Google Cloud
- Keys and key management
- Run without an outside connection
- The platform console
- Settings
- After an upgrade: check the stored models