Skip to content

Operator guide ​

This part is for the person who runs a Wayfare instance. You can host it yourself with Docker, or on Google Firebase. The same codebase serves both.

Architecture ​

Wayfare is a Next.js 16 application built with ports & adapters: the business logic talks to small interfaces, and the container picks the implementation at start-up based on WAYFARE_RUNTIME.

PortSelf-hosted (WAYFARE_RUNTIME=selfhost)Firebase (WAYFARE_RUNTIME=firebase)
DocumentStoreSQLite (better-sqlite3, JSON documents) in DATA_DIRFirestore (firebase-admin)
BlobStorageLocal filesystem or S3-compatibleFirebase Storage (or S3)
MailerSMTP or consoleSMTP or console
PhotoSourceAdapterGoogle Photos Picker, Google Drive Pickersame
AuthBetter Auth on top of the DocumentStoresame

Why one generic DocumentStore? See ADR 0001.

Pages in this guide ​

PageTopic
Self-hostingDocker Compose, HTTPS reverse proxy, backups, upgrades
FirebaseApp Hosting + Firestore + Storage: one-command Cloud Shell setup, release workflow, manual steps
ConfigurationEvery environment variable
AuthenticationGoogle, Apple, Facebook, Discord, magic link, passkeys, admins
Photo sourcesGoogle Photos / Drive import setup
StorageLocal, S3, Firebase Storage
MailSMTP and the daily digest
Security & privacySecurity model and GDPR notes
TroubleshootingCommon problems

Admin area ​

Admins manage the instance in the browser under /admin: onboarding mode, instance name, upload limits, legal pages and users.

Admin settings

User management

Health check ​

GET /api/health returns {"status":"ok"} when the database is reachable (HTTP 503 otherwise). The Docker image uses it for its HEALTHCHECK; point your uptime monitor at it too.