# Self-hosting

> Run the open-source engine for your school, your company or your community.

Applies to: the Sypnia engine (open source, self-hosted).  
Source: https://learn.docs.sypnia.com/self-hosting/

For agents: Self-hosting Learn: the engine (ghcr.io/sespinosav/sypnia-learn, port 8097) + Postgres 16 + S3-compatible storage; sign-in through a Sypnia Data engine or any OpenID Connect provider; a runner for checks (Agent's open sandbox, or the Docker runner sypnia-learn-runner); optional model endpoint for explanations (a Sypnia AI gateway or any OpenAI-compatible endpoint); optional Git (Sypnia Git engine, any git over HTTPS) and product engines (Cases, Data, Telemetry) for binding. Without them: lessons bind to the sample project and exercises work from the CLI with a local folder.

You run the engine when you want your own courses for your own people: a school teaching a class, a company onboarding its team, a community with its own lessons.

## What you need

| Piece                     | Required                         | Choices                                                                               |
| ------------------------- | -------------------------------- | ------------------------------------------------------------------------------------- |
| The engine                | yes                              | `ghcr.io/sespinosav/sypnia-learn`, port 8097                                          |
| Postgres 16 or newer      | yes                              | any                                                                                   |
| S3-compatible storage     | yes, for course files and videos | MinIO, Amazon S3, Sypnia Files                                                        |
| Sign-in                   | yes                              | a [Sypnia Data](https://data.docs.sypnia.com/) engine, or any OpenID Connect provider |
| A runner for checks       | for exercises                    | Sypnia Agent's open-source sandbox, or the Docker runner                              |
| A model endpoint          | for «Explain this» and hints     | a [Sypnia AI](https://ai.docs.sypnia.com/) gateway, or any OpenAI-compatible endpoint |
| Git and the other engines | to bind lessons to real projects | a Sypnia Git engine or any git host; Cases, Data and Telemetry engines                |

Without the other engines, lessons use the sample project, and learners do exercises from the CLI on a local folder.

- [Docker](/self-hosting/docker/): Run the engine with Docker Compose, with Postgres, storage and the Docker runner.
- [Configuration](/self-hosting/configuration/): Every setting of the engine, its environment variable and its default.
- [Upgrades](/self-hosting/upgrades/): How versions work, how to upgrade the engine, and what happens to courses and progress.
