# Quickstart: self-host

> Run the engine with Docker, add a course folder, and check a lesson's exercise.

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

For agents: Self-host quickstart: compose.yaml with learn (ghcr.io/sespinosav/sypnia-learn:1, port 8097), postgres:16, minio; SYPNIA_LEARN_ROOT_TOKEN; SYPNIA_LEARN_AUTH_URL (Sypnia Data engine) or SYPNIA_LEARN_OIDC_*; runner SYPNIA_LEARN_RUNNER=docker; docker compose up; npx @sypnia/learn login --server http://localhost:8097; learn courses add ./courses/team-onboarding (lint + upload); learn start <lesson>; learn check.

At the end your own engine serves a course, and a learner's exercise is checked by it.

### 1. Start the engine

Copy the `compose.yaml` from [Docker](https://learn.docs.sypnia.com/self-hosting/docker), set a root token and how people sign in, then:

```bash
docker compose up -d
curl http://localhost:8097/v1/health
```

**You should see:**`{"status":"ok"}`

### 2. Add a course

A course is a folder of lesson files ([The lesson format](https://learn.docs.sypnia.com/lessons/the-lesson-format)). Check it and upload it:

```bash
npx @sypnia/learn login --server http://localhost:8097
npx @sypnia/learn lint ./courses/team-onboarding
npx @sypnia/learn courses add ./courses/team-onboarding
```

**You should see:**`team-onboarding: 6 lessons, 0 problems. Published as version 1.`

### 3. Take a lesson

In the repository of a project:

```bash
npx @sypnia/learn start first-case
npx @sypnia/learn check
```

**You should see:**Each check with ✓ or ✗ and what to fix.

Configure the runner that checks exercises before real learners use it: [Configuration](https://learn.docs.sypnia.com/self-hosting/configuration).
