REST API server for fumi — manga collection tracker. Compiled Bun binary serving a Hono HTTP API with Drizzle ORM and PostgreSQL.
Run the database migrations before starting the server:
docker run --rm \
-e DATABASE_URL=postgres://user:password@host:5432/fumi \
fumi-api:1.0.0 migrate
Start the server with the minimum required environment variables:
docker run --rm \
-e DATABASE_URL=postgres://user:password@host:5432/fumi \
-e OIDC_ISSUER=https://your-idp.example.com/realms/fumi \
-e MANGADEX_CLIENT_ID=your-client-id \
-e MANGADEX_CLIENT_SECRET=your-client-secret \
-e MANGADEX_USERNAME=your-username \
-e MANGADEX_PASSWORD=your-password \
-p 3000:3000 \
fumi-api:1.0.0
| Variable | Description | Default | Required |
|---|---|---|---|
DATABASE_URL | PostgreSQL connection string | — | Yes |
OIDC_ISSUER | OIDC issuer URL for JWT validation | — | Yes |
MANGADEX_CLIENT_ID | MangaDex OAuth2 client ID | — | Yes |
MANGADEX_CLIENT_SECRET | MangaDex OAuth2 client secret | — | Yes |
MANGADEX_USERNAME | MangaDex account username | — | Yes |
MANGADEX_PASSWORD | MangaDex account password | — | Yes |
PORT | Server port | 3000 | No |
OTEL_SERVICE_NAME | OpenTelemetry service name | fumi-api | No |
OTEL_EXPORTER_OTLP_ENDPOINT | OTLP collector endpoint | — | No |
OTEL_TRACES_EXPORTER | Traces exporter (otlp or none) | otlp | No |
OTEL_METRICS_EXPORTER | Metrics exporter (otlp or none) | otlp | No |
OTEL_LOGS_EXPORTER | Logs exporter (otlp or none) | otlp | No |
OTEL_TRACES_SAMPLER | Trace sampler strategy | parentbased_traceidratio | No |
OTEL_TRACES_SAMPLER_ARG | Sampling ratio (0.0 - 1.0) | 0.1 | No |
Moon.cat - GitLab Repository
Content type
Image
Digest
sha256:704b8fe71…
Size
47.8 MB
Last updated
3 months ago
docker pull reiizumi/fumi-api:1.1.5