This repository contains a Dockerfile to run the neon proxy locally. It basically implements the steps described in neondatabase/serverless/issues/33.
The container also includes a small Caddy reverse proxy to setup the upstream connection via HTTPS so the local code does not need to trust the self-signed certificate of the neon proxy.
- Clone this repository
- Run
docker-compose up
to start the PostgreSQL database and the neon http proxy (building the Docker image for the first time might take a while) - Run
npm install
to install the dependencies - Run
npm test
to run the sample to validate the connection to the database works