/PostgRESTdemo

Primary LanguageDockerfile

title description tags
Postgrest
A PostgREST instance with a PostgreSQL database.
postgresql
postgrest

PostgREST template

This template sets up a PostgREST instance with a PostgreSQL database.

Deploy on Railway

✨ Features

  • Postgres
  • PostgREST

💁‍♀️ How to use

  • Click the Deploy on Railway button
  • Set PGRST_DB_URI environment variable to ${{ DATABASE_URL }}.
  • Set PGRST_DB_ANON_ROLE environment variable to anon to enable anonymous access.
  • Set PGRST_JWT_SECRET environment variable to secure your endpoints. Must be 32 characters or more.
  • Set PORT environment variable to 3000. Could be any valid port.
  • Set PGRST_SERVER_PORT environment variable to ${{ PORT }}.
  • Set a domain to expose your app.

You can configure your PostgREST instance with some other environment variables.

📝 Notes

  • This starter automagically provisions a PostgreSQL database for you when you click the Deploy on Railway.