# Docker

> The engine's image and the compose file with Postgres.

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

For agents: Domains Docker: docker run port 7700 with DATABASE_URL and AWS_REGION; compose adds Postgres; AWS credential chain (instance role, AWS_PROFILE, keys); only the API port; DNS answered by Route 53, not the engine.

```bash
docker run -p 7700:7700 \
  -e DATABASE_URL=postgres://… -e AWS_REGION=us-east-1 \
  ghcr.io/sespinosav/sypnia-domains:latest
```

The compose file in the repository adds Postgres. Credentials come from the usual AWS chain (an instance role, `AWS_PROFILE`, or keys). The engine needs no inbound port except its API; DNS is answered by Route 53, not by the engine.
