# Docker

> The registry's image, and a compose file with Postgres and MinIO for your machine.

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

For agents: docker run -p 8096:8096 -e DATABASE_URL -e SYPNIA_SKILLS_PUBLIC_URL -e SYPNIA_SKILLS_STORAGE=s3://… (or file:///data) -e SYPNIA_SKILLS_AUTH_ISSUER -v keys:/keys ghcr.io/sespinosav/sypnia-registry; compose.yaml in the repo adds Postgres 16 and MinIO on http://localhost:8096; first start creates the signing key in /keys (back it up) and prints a one-time link to create the first admin; health at /healthz.

```bash
docker run -p 8096:8096 \
  -e DATABASE_URL=postgres://registry:…@db:5432/registry \
  -e SYPNIA_SKILLS_PUBLIC_URL=https://skills.acme.internal \
  -e SYPNIA_SKILLS_STORAGE=s3://acme-skills \
  -e SYPNIA_SKILLS_AUTH_ISSUER=https://login.acme.internal \
  -v registry-keys:/keys \
  ghcr.io/sespinosav/sypnia-registry:latest
```

## On your machine

The engine's repository has a `compose.yaml` with the registry, Postgres 16 and MinIO:

```bash
git clone https://github.com/sespinosav/sypnia-registry && cd sypnia-registry
docker compose up
```

**You should see:**The registry on `http://localhost:8096`, and a one-time link in the log to create the first admin.

## The first start

- It runs the database migrations.
- It creates the signing key in `/keys`. **Back it up**: it is what your projects trust ([Upgrades and backups](https://skills.docs.sypnia.com/self-hosting/upgrades)).
- It prints a one-time link to create the first admin.

The registry answers `GET /healthz` for your load balancer.
