Docker Compose Deployment
The simplest way to run Sparrow. No need to clone the repo — download the compose file and start it.
Quick Start
Section titled “Quick Start”curl -O https://raw.githubusercontent.com/sarathsp06/sparrow/main/deploy/docker-compose.ymlSPARROW_ENCRYPTION_KEY=$(openssl rand -hex 32) docker compose up -dThe server is available at:
- Web UI: http://localhost:8080
- HTTP API (Connect-RPC): http://localhost:8080
- gRPC API: localhost:50051
To stop:
docker compose down # stop containersdocker compose down -v # stop and delete dataDocker Image
Section titled “Docker Image”Pre-built multi-arch images (linux/amd64, linux/arm64) are published to GitHub Container Registry on every release:
docker pull ghcr.io/sarathsp06/sparrow:latestYou can also pin to a specific version:
docker pull ghcr.io/sarathsp06/sparrow:0.2.0Development (Build from Source)
Section titled “Development (Build from Source)”The repo contains a docker-compose.dev.yml that builds from source. This is useful for development:
git clone https://github.com/sarathsp06/sparrow.gitcd sparrowdocker compose -f docker-compose.dev.yml up -dOr build without Docker:
make build-with-uiexport DATABASE_URL=postgres://user:pass@localhost:5432/sparrow?sslmode=disablemake migrateSPARROW_SERVE_UI=true ./build/server-*Observability
Section titled “Observability”Sparrow exports traces, metrics, and logs via OpenTelemetry (OTLP). Set OTEL_EXPORTER_OTLP_ENDPOINT to point to your collector:
OTEL_EXPORTER_OTLP_ENDPOINT=http://your-otel-collector:4318