# With Docker

> Try App on your machine with Docker Compose, then point it at your engines.

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

For agents: compose.yaml: services app (ghcr.io/sespinosav/sypnia-app, port 8090), postgres (16), data (ghcr.io/sespinosav/sypnia-data, sign-in), agent (Agent runner with SYPNIA_AGENT_MODEL_KEY). Env: SYPNIA_APP_DATABASE_URL, SYPNIA_APP_PUBLIC_URL=http://localhost:8090, SYPNIA_APP_AUTH_URL, SYPNIA_APP_AGENT_URL, SYPNIA_APP_PRODUCTS, SYPNIA_APP_AUTO_MIGRATE=true. docker compose up -d → open http://localhost:8090 → first sign-up becomes the owner of the first organization; app login --server http://localhost:8090; desktop app: Sign in → Your own server.

At the end you will have App running on `http://localhost:8090`, with its own sign-in and agent.

### 1. Get the compose file

```bash
git clone https://git.app.sypnia.com/sespinosav/sypnia-app.git
cd sypnia-app
```

The repository's `compose.yaml` is the trial setup.

### 2. Add your model key

`.env`

```bash
SYPNIA_AGENT_MODEL_KEY=<your OpenRouter or provider key>
```

### 3. Start it

```bash
docker compose up -d
```

It starts App, Postgres, a Sypnia Data engine for sign-in and an Agent runner.

**You should see:**`docker compose ps` shows the four services as healthy.

### 4. Create the first account

Open `http://localhost:8090` and sign up. The first account becomes the owner of the first organization.

### 5. Connect your tools

```bash
npx @sypnia/app login --server http://localhost:8090
```

In the desktop app, choose **Sign in → Your own server** and type the same address.

`compose.yaml (the App service)`

```yaml
app:
  image: ghcr.io/sespinosav/sypnia-app:latest
  ports: ["8090:8090"]
  environment:
    SYPNIA_APP_DATABASE_URL: postgres://app:app@postgres:5432/app
    SYPNIA_APP_PUBLIC_URL: http://localhost:8090
    SYPNIA_APP_AUTH_URL: http://data:8080
    SYPNIA_APP_AGENT_URL: http://agent:8070
    SYPNIA_APP_PRODUCTS: data=http://data:8080
    SYPNIA_APP_AUTO_MIGRATE: "true"
```

Add the engines you run to `SYPNIA_APP_PRODUCTS` ([Configuration](https://app.docs.sypnia.com/self-hosting/configuration)) and they appear on the board.
