# Docker

> La imagen del motor y el archivo compose con Postgres y MinIO.

Aplica a: el motor de Sypnia (código abierto, en tu propia infraestructura).  
Fuente: https://design.docs.sypnia.com/es/self-hosting/docker/

Para agentes: Design Docker: docker run -p 7700:7700 with DATABASE_URL, STORAGE_URL, PUBLIC_URL, GIT_PROVIDER + GIT_TOKEN, optional SYPNIA_DESIGN_AI_URL/KEY; image includes headless Chromium (about 1 GB memory per concurrent render; RENDER_CONCURRENCY). Compose file adds Postgres 16 and MinIO. Point the CLI with design use http://localhost:7700.

```bash
docker run -p 7700:7700 \
  -e DATABASE_URL=postgres://… -e STORAGE_URL=s3://design?endpoint=http://minio:9000 \
  -e PUBLIC_URL=https://design.example.com \
  -e GIT_PROVIDER=github -e GIT_TOKEN=… \
  ghcr.io/sespinosav/sypnia-design:latest
```

La imagen incluye Chromium sin interfaz para las imágenes y el PDF. Dale cerca de 1 GB de memoria por cada imagen que se genere al mismo tiempo (`RENDER_CONCURRENCY`, por defecto 2).

El archivo compose del repositorio agrega Postgres 16 y MinIO:

```bash
git clone https://github.com/sespinosav/sypnia-design && cd sypnia-design/deploy
docker compose up -d
npx @sypnia/design use http://localhost:7700
```

**Deberías ver:**`design whoami` responde con la dirección de tu motor.

Sin `SYPNIA_DESIGN_AI_URL`, la ayuda de IA queda apagada y las propuestas vienen de personas o de agentes que usan las skills.
