james-langridge / personal-trainer-planner

Scheduling and management app for personal trainers made with Next.js 13 (App Router), RSC, Redux Toolkit, RTK Query, Prisma, PostgreSQL, NextAuth, Tailwind CSS, and shadcn/ui.
https://personal-trainer-planner.vercel.app
MIT License
14 stars 5 forks source link

Use local/dockerized Postgres? #81

Closed mrysn closed 1 year ago

mrysn commented 1 year ago

How can I use a local or dockerized instance of Postgres instead of Railway?

james-langridge commented 1 year ago

You can set the DATABASE_URL env var to any Postgres instance you like, eg, DATABASE_URL=postgresql://<USERNAME>:<PASSWORD>@localhost:5432/<DATABASE_NAME>. Let me know if you need more help.

Edit: I updated the readme just now, which might help. Note that DATABASE_URL needs to be in .env not .env.local.