Sign inSign up

marukome0743/dcrs

By marukome0743

β€’Updated about 16 hours ago

Disability Certificate Register SystemπŸ“‡

Image
Web servers
0

10K+

marukome0743/dcrs repository overview

⁠dcrs

Disability Certificate Register SystemπŸ“‡ β€” a Next.js app for registering and managing disability certificates.

⁠Tags

TagDescription
latestLatest tagged release
canaryLatest build of the main branch
1, 1.1, 1.1.0Tagged releases (semver)

Images are built for linux/amd64 and linux/arm64, run as a non-root user on a distroless Node.js base, and are also published to ghcr.io/openup-labtakizawa/dcrs.

The image bundles the AWS Lambda Web Adapter⁠, so it can be deployed as-is to AWS Lambda. Outside Lambda the adapter is inactive and the image runs like any other web server. It is built with DB_TYPE=postgres, i.e. for a standard PostgreSQL server.

⁠Usage

The app needs PostgreSQL, a Better Auth secret, a Resend API key for email, and an S3-compatible bucket (or Vercel Blob) for file storage.

docker run -d -p 3000:3000 \
  -e DATABASE_URL=postgres://user:password@db:5432/dcrs \
  -e BETTER_AUTH_SECRET=$(openssl rand -base64 32) \
  -e BETTER_AUTH_URL=https://dcrs.example.com \
  -e AUTH_RESEND_KEY=re_xxxxxxxx \
  -e S3_ACCESS_KEY_ID=... -e S3_SECRET_ACCESS_KEY=... \
  -e S3_REGION=ap-northeast-1 -e S3_BUCKET=dcrs \
  marukome0743/dcrs:latest

Then open http://localhost:3000⁠.

⁠Environment variables

VariableDescriptionRequired
DATABASE_URLPostgreSQL connection stringβœ…
BETTER_AUTH_SECRETSecret key for Better Auth session encryptionβœ…
BETTER_AUTH_URLPublic base URL of the app, e.g. https://dcrs.example.comβœ…
AUTH_RESEND_KEYResend⁠ API key for sending emailsβœ…
BLOB_READ_WRITE_TOKENVercel Blob⁠ token. When set, Vercel Blob is the storage backend; otherwise S3 is used❌
S3_ACCESS_KEY_IDS3 access key ID (required for the S3 backend)❌
S3_SECRET_ACCESS_KEYS3 secret access key (required for the S3 backend)❌
S3_REGIONS3 region (AWS_REGION is also accepted)❌
S3_BUCKETS3 bucket name (uses the default when omitted)❌
S3_ENDPOINTS3-compatible endpoint URL, e.g. http://localhost:9000 for RustFS. Enables path-style access❌
API_URLBase URL for the API (default http://localhost:3000)❌
PORTPort the server listens on (default 3000)❌

Tag summary

Content type

Image

Digest

sha256:8d62b7e19…

Size

76.2 MB

Last updated

6 months ago

docker pull marukome0743/dcrs