> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tablepro.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Self-hosted server

> What the Enterprise Self-Hosted preview runs, what it needs from your infrastructure, the order to set it up in, and its limits

One OCI image serves your teams, their Team Library and each person's [TablePro Sync](https://docs.tablepro.app/self-hosted/sync.md) to the Macs, from your own PostgreSQL. People sign in through your identity provider. The server sends no telemetry. Its only outbound calls go to an OIDC identity provider, to your SMTP relay when you [set one](https://docs.tablepro.app/self-hosted/settings.md#email) for passkey notices, and, when you turn on [license renewal](https://docs.tablepro.app/self-hosted/operations.md#renew), to tablepro.app for the license's next file.

> [!NOTE]
>
> This is a preview. It serves TablePro for macOS. The other apps follow. To try it, write to [hello@tablepro.app](mailto:hello@tablepro.app) with the subject "TablePro Enterprise Self-Hosted"; plans and prices are under [Enterprise Self-Hosted](https://docs.tablepro.app/features/licensing.md#enterprise-self-hosted).

## Requirements

| Part | What it takes |
| - | - |
| Container host | Docker Compose on one Linux host, or AWS ECS on Fargate. The image runs on `linux/amd64` and `linux/arm64` |
| Database | PostgreSQL 18. The Compose file brings its own; on AWS, RDS for PostgreSQL 18 |
| Two hostnames | One for the account portal, one for the API. They must differ, and the portal's must be a DNS name: passkeys take no IP address |
| TLS | A reverse proxy or load balancer in front that terminates TLS for both hostnames and forwards to port 8080. It has to pass request bodies of up to 4 MiB to the API: a Mac sends smaller uploads to a proxy that takes less, as nginx's default of 1 MiB does, but keeps a record larger than the proxy's limit on the Mac as too large |
| Identity provider | One IdP over OpenID Connect or SAML 2.0. See [Sign-in](https://docs.tablepro.app/self-hosted/sign-in.md) |
| License file | Issued by TablePro for your API address |
| SMTP relay | Optional. It sends the passkey notices; see [Email](https://docs.tablepro.app/self-hosted/settings.md#email) |

These pages use two example hostnames:

| Host | Example | Who reaches it |
| - | - | - |
| Account portal, `ACCOUNT_HOST` | `tablepro-account.example.com` | Browsers: sign-in, teams, members, the Team Library page |
| API, `API_HOST` | `tablepro.example.com` | The Macs. People type this address in [Use a Company Server](https://docs.tablepro.app/features/company-server.md) |

The license file names the API address as `https://` plus `API_HOST`, and the server refuses a file issued for another address. Settle the API hostname before you ask for the file.

## Set it up

**1. Get the license file**

Send TablePro your API address, such as `https://tablepro.example.com`. The file comes back as one line of text, `license.jwt` in these pages.

**2. Pull and verify the image, then generate the keys**

See [Image and keys](https://docs.tablepro.app/self-hosted/image.md).

**3. Set up your identity provider**

Create the SAML application or the OIDC client first. [Sign-in](https://docs.tablepro.app/self-hosted/sign-in.md) lists the values for each.

**4. Start the server**

With [Docker Compose](https://docs.tablepro.app/self-hosted/docker-compose.md) or on [AWS Fargate](https://docs.tablepro.app/self-hosted/aws.md). [Settings](https://docs.tablepro.app/self-hosted/settings.md) lists every variable.

**5. Install the license**

`license install`, on the page for your platform. No one signs in until a license is installed.

**6. Claim the server**

`bootstrap "<first team's name>"` prints a link that works for one hour. Open it and sign in through your IdP: that account becomes the server's owner and the owner of the first team.

**7. Point the Macs at it**

Each person signs in with **Use a Company Server…**, or an MDM profile sets the address for every Mac. See [Company server](https://docs.tablepro.app/features/company-server.md).

> [!TIP]
>
> `license status` prints the license and `seats taken: 1 of <seats>` once the owner has signed in.

## Preview limits

* **macOS only.** The other TablePro apps cannot sign in to a self-hosted server yet.
* **Team Library and TablePro Sync are what sync.** Shared links, billing and plan purchases are tablepro.app services and are not on a self-hosted server; [Company server](https://docs.tablepro.app/features/company-server.md#what-is-different-on-a-company-server) lists what the Mac hides.
* **Passkey notices are the only email.** An invitation is a link to copy and send yourself. Every other email the server would send is dropped and logged as `email not sent`.
* **One IdP, one protocol.** Moving to another IdP or protocol later gives every person a new identity, and nothing links the old accounts to the new ones.
* **SAML is SP-initiated only.** A Response the IdP sends unasked is refused, and the server reads no encrypted assertion and sends no Single Logout.
* **No SCIM, no LDAP.** People appear at their first sign-in. An LDAP directory goes through an OIDC broker you run, such as Keycloak's LDAP user federation or Dex's LDAP connector.
* **One server task.** Each start migrates the database first, and two starts at once can collide. Run one `serve` container per database.
* **Upgrades one minor version at a time**, and migrations only go forward: going back means restoring the backup taken before the upgrade. See [Upgrades](https://docs.tablepro.app/self-hosted/operations.md#upgrades).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.