---
title: "Make Yourself at Home with Neon Local"
description: "Neon Local is a Docker-based proxy that exposes a local Postgres endpoint for a Neon cloud database."
url: "https://swe.quest/articles/make-yourself-at-home-with-neon-local-be56a855dab1fc15"
canonical: "https://neon.com/blog/make-yourself-at-home-with-neon-local"
source: "Neon"
published: "2025-04-30"
difficulty: "medium"
kind: "Announcement"
reading_minutes: 5
tags: ["postgres","containers","testing","developer-tools"]
---

# Make Yourself at Home with Neon Local

A post on [Neon](https://swe.quest/sources/neon.md), published 2025-04-30, 5 min read, Announcement. Original: [https://neon.com/blog/make-yourself-at-home-with-neon-local](https://neon.com/blog/make-yourself-at-home-with-neon-local)

## Summary

Neon Local is a Docker-based proxy that exposes a local Postgres endpoint for a Neon cloud database. By default it creates a fresh database branch when the container starts and deletes it when the container stops, giving isolated ephemeral environments for local development and CI without a local Postgres instance or environment drift. Configuration happens through environment variables: DRIVER selects the serverless or standard Postgres client, PARENT\_BRANCH\_ID picks the base branch, and DELETE\_BRANCH=false keeps the branch between runs. Example docker-compose and docker run setups show how to point the Neon serverless driver at the proxy. Named branches and an offline dump/restore mode are planned.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [PostgreSQL](https://swe.quest/tags/postgres.md) (Data & databases)
- [Containers](https://swe.quest/tags/containers.md) (Infrastructure)
- [Testing](https://swe.quest/tags/testing.md) (Engineering practices)
- [Developer tools](https://swe.quest/tags/developer-tools.md) (Engineering practices)

## Prerequisites

- Docker Compose ([easy posts on Containers](https://swe.quest/tags/containers.md?difficulty=easy))
- Postgres connection strings ([easy posts on PostgreSQL](https://swe.quest/tags/postgres.md?difficulty=easy))

## Keywords

Neon Local, Neon, Docker, Neon serverless driver, docker-compose

## Related posts

- [Fullstack preview environments using Neon and Qovery](https://swe.quest/articles/fullstack-preview-environments-using-neon-and-qovery-5ddb9f5e7c2f931c.md): Neon · 2023-08-11 · Medium · 8 min read · PostgreSQL, CI/CD, Deployment, Serverless
  Each Qovery preview environment can get its own isolated Postgres database by using a Qovery lifecycle job that creates a copy-on-write Neon branch on the environment's Start event and deletes it on Delete.
- [A branch-first dev loop for Neon: link, checkout and env pull](https://swe.quest/articles/a-branch-first-dev-loop-for-neon-link-checkout-and-env-pull-3d4b71e97977636f.md): Neon · 2026-06-10 · Medium · 6 min read · Developer tools, PostgreSQL, AI for coding, Serverless
  Neon's CLI adds three commands for branch-first Postgres development. \`neon link\` binds a workspace to a project and branch via a git-ignored \`.neon\` file. \`neon checkout\` creates or switches database branches, much like \`git checkout -b\`. \`neon env pull\` writes only the Neon-managed connection strings and service secrets for the current branch into \`.env\`.
- [Branching Postgres databases with the Neon API](https://swe.quest/articles/branching-postgres-databases-with-the-neon-api-3faf0de941bc811a.md): Neon · 2022-12-07 · Medium · 3 min read · PostgreSQL, CI/CD, Testing
  Neon branches are copy-on-write clones of a Postgres database that can be created and deleted through the Neon API, giving CI pipelines an isolated copy of production data for end-to-end tests.
- [Neon Twin: Move Dev/Test/Staging to Neon, Keep Production on RDS](https://swe.quest/articles/neon-twin-move-dev-test-staging-to-neon-keep-production-on-rds-a26cd19df36ac332.md): Neon · 2024-07-24 · Medium · 7 min read · PostgreSQL, CI/CD, Databases
  A Neon Twin is a nightly-synced copy of an RDS Postgres production database kept in Neon for dev, test and staging, so teams get instant provisioning, branching and scale-to-zero without migrating production.
- [Beyond Docker Compose: An Alternative for Deploying Postgres for Testing](https://swe.quest/articles/beyond-docker-compose-an-alternative-for-deploying-postgres-for-testing-119ea8d590b0c90d.md): Neon · 2025-02-24 · Medium · 8 min read · PostgreSQL, Testing, Containers, CI/CD
  Docker Compose with the official Postgres image gives each developer and CI run an isolated test database, but it struggles with production-like seed data, leftover state between runs, and RAM/CPU overhead.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
