Skip to content

Docker Runtime

At a glance

  • Use this page for Node adapter deployments with SQLite and filesystem object storage.

Do this

  1. Build image with an event baked in.
bash
docker build -t tripplan-ing --build-arg EVENT_CONFIG=<slug> .
  1. Run container with mounted data and required env vars.
bash
docker run --rm -p 3000:3000 \
  -e STRIPE_SECRET_KEY=... \
  -e STRIPE_WEBHOOK_SECRET=... \
  -e MAILGUN_API_KEY=... \
  -e MAILGUN_DOMAIN=... \
  -v $(pwd)/data:/app/data \
  tripplan-ing

Important inputs:

Runtime env vars:

  • DATABASE_URL default: file:/app/data/db.sqlite
  • FILES_DIR default: /app/data/objects
  • Stripe and Mailgun keys as in Cloudflare runtime

When it fails

  • Missing build arg event: pass --build-arg EVENT_CONFIG=<slug>.
  • Storage path issues: verify -v mount and optional FILES_DIR override.
  • Auth/payment failures: confirm env vars are supplied.
  • See Troubleshooting.

Released under the MIT License.