You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
git clone https://github.com/princejoogie/t3-turbo-local-postgres-reproduction.git
pnpm i
cp .env.example .env # fill in discord oauth fields
docker compose up # run the local db
pnpm run db:push
pnpm run dev
Additional information
No response
The text was updated successfully, but these errors were encountered:
I see that you are using @vercel/postgres which is not compatible with the regular postgres driver. You should replace that with a different client, say for example postgres.js.
After that you need to configure drizzle to use that client and you should be good to go.
version: "3.5"
volumes:
postgres:
services:
postgres:
image: postgres
volumes:
- postgres:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: root
# Expose the Postgres port to the host machine,
# so you can inspect and administrate it
ports:
- "54320:5432"
pg_proxy:
image: ghcr.io/neondatabase/wsproxy:latest
environment:
APPEND_PORT: "postgres:5432"
ALLOW_ADDR_REGEX: ".*"
LOG_TRAFFIC: "true"
ports:
# Expose the WebSocket proxy port to the host machine,
# this is where @vercel/postgres will connect
- "54330:80"
depends_on:
- postgres
Provide environment information
Describe the bug
I wanted to run a local db for development so I created a
docker-compose.yml
to quickly spin up a postgres instancethen I have my
.env
point to this local dbPOSTGRES_URL="postgres://postgres:postgres@localhost:2345/bazaar"
Link to reproduction
https://github.com/princejoogie/t3-turbo-local-postgres-reproduction
To reproduce
Additional information
No response
The text was updated successfully, but these errors were encountered: