From eee3d6fc646802207d7285b3d868b766140cae9b Mon Sep 17 00:00:00 2001 From: Cali <32299095+Cali93@users.noreply.github.com> Date: Thu, 18 Jan 2024 21:58:21 +0700 Subject: [PATCH] fix(env-var): move from direct database URL to pooler connection string (#20) --- .env.example | 6 +++--- README.md | 6 ++++++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.env.example b/.env.example index 776b8ad..2d9deb7 100644 --- a/.env.example +++ b/.env.example @@ -4,9 +4,9 @@ COOKIE_NAME=sb-token SUPABASE_JWT_SECRET= COOKIE_SECRET= HCAPTCHA_SECRET= -DIRECT_URL="postgresql://postgres:[YOUR_DB_PASSWORD]@db.[YOUR_SUPABASE_PROJECT_ID].supabase.co:5432/postgres" -DATABASE_URL="postgresql://postgres:[YOUR_DB_PASSWORD]@db.[YOUR_SUPABASE_PROJECT_ID].supabase.co:6543/postgres?pgbouncer=true" +DIRECT_URL="postgres://postgres.[YOUR_SUPABASE_PROJECT_ID]:[YOUR_DB_PASSWORD]@aws-0-eu-central-1.pooler.supabase.com:6543/postgres" +DATABASE_URL="postgres://postgres.[YOUR_SUPABASE_PROJECT_ID]:[YOUR_DB_PASSWORD]@aws-0-eu-central-1.pooler.supabase.com:6543/postgres?pgbouncer=true" REDIS_PASSWORD="authpassword" REDIS_HOST=redis REDIS_PORT=6379 -INFURA_API_KEY= \ No newline at end of file +INFURA_API_KEY= diff --git a/README.md b/README.md index a9932f0..eb09bea 100644 --- a/README.md +++ b/README.md @@ -47,6 +47,12 @@ npm run dev The server will start on port 3333. You can access it at `http://localhost:3333`. +6. Alternatively you can run the docker containers + +```sh +docker-compose build && docker-compose up +``` + ## API Endpoints This API has the following endpoints: