Skip to content
A night pier with rows of wooden crates under amber lamps, a teal-lit crate among them

Template · App starters

Express + Postgres

Express API with a PostgreSQL database wired via DATABASE_URL.

Deploy on Skiffly

Opens the dashboard with this template pre-selected. New here? Sign up with GitHub, Google or e-mail — the free tier needs no card, and we create a project for the template.

  • Express + Postgresrailwayapp-templates/expressjs-postgres
  • Postgrespostgres:17
Upstream documentation
Manifest

What gets deployed

2 services in the environment you pick, on the private network of the project.

About this template

Deploys railwayapp-templates/expressjs-postgres with Railpack. Fork it to make it yours — every push to your fork redeploys.

Express + Postgres

Repository: railwayapp-templates/expressjs-postgres@main

  • Port 3000/http
  • Public domain with TLS
  • 0.5 vCPU · 512 MB

Postgres

Image: postgres:17

  • Port 5432/tcp
  • 10 GB volume at /var/lib/postgresql/data
  • 1 vCPU · 1 GB
Variables

Variables

Generated secrets never leave the platform; references are resolved on the private network. Anything marked required is asked for at deploy time.

Express + Postgres

NameValue
DATABASE_URL${{Postgres.DATABASE_URL}}

Postgres

NameValue
POSTGRES_USERpostgresSuperuser name
POSTGRES_PASSWORDgenerated (password)Generated at deploy
POSTGRES_DBappDatabase created on first start
PGDATA/var/lib/postgresql/data/pgdata
DATABASE_URLpostgresql://${{self.POSTGRES_USER}}:${{self.POSTGRES_PASSWORD}}@${{self.SKIFFLY_PRIVATE_DOMAIN}}:5432/${{self.POSTGRES_DB}}Connection string on the private network
README

Deploy button for your README

Add a one-click deploy link to your repository or docs. Two variants: for light and dark backgrounds.

Deploy on SkifflyDeploy on Skiffly
Markdown · Light background
[![Deploy on Skiffly](https://skiffly.dev/button.svg)](https://skiffly.dev/templates/express-postgres)
Markdown · Dark background
[![Deploy on Skiffly](https://skiffly.dev/button-dark.svg)](https://skiffly.dev/templates/express-postgres)
HTML
<a href="https://skiffly.dev/templates/express-postgres"><img src="https://skiffly.dev/button.svg" alt="Deploy on Skiffly" height="32"></a>
Dawn over open water: a skiff with a teal sail heads for the horizon along a dashed chart line drawn on the sea

Deploy Express + Postgres in one click

Volumes, secrets and domain pre-wired. Runs on EU nodes, paid per minute from a prepaid balance.