Self-Hosting¶
Deploy your own Stardag API and UI.
Local Development Stack¶
The repository includes a docker-compose.yml for running the full stack locally. This is intended for:
- Local development and testing
- Running a personal local registry
- Evaluating the platform before deploying
Not for Production
The local Docker Compose setup uses development defaults (simple passwords, Keycloak in dev mode). For production deployment, see Production Deployment below.
Start the Stack¶
This starts:
| Service | Port | Description |
|---|---|---|
| PostgreSQL | 5432 | Database |
| Keycloak | 8080 | OAuth/OIDC provider (dev mode) |
| Stardag API | 8000 | REST API |
| Stardag UI | 3000 | Web dashboard |
The stack automatically:
- Runs database migrations
- Seeds development data
- Configures Keycloak with a
stardagrealm
Verify¶
# Check API health
curl http://localhost:8000/health
# Open UI
open http://localhost:3000
# Keycloak admin console
open http://localhost:8080 # admin/admin
Configure SDK¶
Point your SDK to the local registry:
Stop the Stack¶
Production Deployment¶
AWS Deployment¶
The AWS CDK deployment is experimental
It should run "as is" against a fresh AWS account, but please review the configuration and verify that it meet your needs and expectations.
The project includes AWS CDK infrastructure:
This creates:
- Aurora Serverless PostgreSQL
- ECS Fargate for API
- S3 + CloudFront for UI
- Cognito for authentication
- Route 53 DNS records
See the infra/aws-cdk/ directory for configuration details.