# Quickstart: self-host

> Run the engine with Docker, MinIO and Postgres, and upload your first file.

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

For agents: Files self-host quickstart: clone sypnia-files, cp .env.example .env (SYPNIA_FILES_JWKS_URL), docker compose up (engine on :7500, MinIO storage, Postgres metadata, schema installed on start, secret key printed); npx @sypnia/files use http://localhost:7500 --key; buckets create; cp ./file files://bucket/path.

```bash
git clone https://github.com/sespinosav/sypnia-files && cd sypnia-files
cp .env.example .env        # set SYPNIA_FILES_JWKS_URL to your issuer, or leave the local one
docker compose up
```

The compose file starts the engine on `http://localhost:7500`, **MinIO** as the storage, and Postgres for metadata; the engine installs its schema on first start and prints a secret key.

```bash
npx @sypnia/files use http://localhost:7500 --key <secret key>
npx @sypnia/files buckets create docs
npx @sypnia/files cp ./menu.pdf files://docs/menu.pdf
```

**You should see:**`Uploaded docs/menu.pdf (124 KB).`

> **Note**
>
> The repository lives in Sypnia Git, like all of Sypnia's code, with a mirror on GitHub at the address above.
