Deployment

Your cloud or ours

StayFn is one container image and a PostgreSQL 16 database. We can run it for you in the EU or the US, or you can run it yourself.

StayFn CloudCloud DedicatedSelf-hosted
Who runs itStayFnStayFnYour team
WhereEU or USEU or US, dedicatedYour cloud or data centre
Your functionsIn your own instanceIn your own instanceIn your own host
DatabaseManaged PostgreSQLDedicated managed PostgreSQLYour PostgreSQL 16
Upgrades and backupsIncludedIncludedYou apply releases
Admin sign-inAdmin access issued by StayFnYour OIDC identity providerYour OIDC identity provider

See plans for what each option includes.

Self-hosted

Small footprint, standard tools

  • One machine: Docker Compose with the host and PostgreSQL
  • Kubernetes: sample manifests with a migration job, probes and resource limits
  • A non-root container on a read-only file system, listening on one port
  • Two database roles, neither able to bypass row-level security
  • Configuration from environment variables, checked at start: the host refuses unsafe values
  • Health endpoints, Prometheus metrics and OpenTelemetry for your monitoring
# single machine
cp prod.env.example prod.env   # fill in the secrets
docker compose -f docker-compose.prod.yml \
  --env-file prod.env up -d

curl -fsS http://127.0.0.1:8080/health/ready
{"status":"Healthy", "checks":{ … }}
Getting started

From OHIP credentials to live functions

  1. 1

    Register with OHIP

    In the OHIP Developer Portal, register an application for your chain and get its app key, OAuth client and gateway URL.

  2. 2

    Connect your environment

    Add the OHIP environment and your hotels to StayFn. Credentials are stored as references to your vault, never as values.

  3. 3

    Write your first function

    Your developers create a project, write and test functions locally against the OHIP sandbox, with Claude Code or VS Code.

  4. 4

    Go live

    Deploy the functions to your instance, issue API keys to your apps and, if you use events, switch on streaming for your app key.

Not sure which option fits?

Tell us about your group, your policies and your integrations, and we will recommend a setup.