With `Prisma 2`, how is everyone’s workflow in ter...
# orm-help
s
With
Prisma 2
, how is everyone’s workflow in terms of running a local database locally via
PostgreSQL
? Do you still run a docker container?
r
Hey @Stefan Trivuncic 👋 Prisma 2 itself doesn't need a docker container to run, so you can use either a locally installed Postgres instance or a Postgres docker image. I personally prefer the Postgres docker container while developing locally with Prisma 2.
s
Hey @Ryan! Thanks for your comment and direction!
💯 1
@Ryan For your set up - do you use the official Prisma container? https://hub.docker.com/r/prismagraphql/prisma/
r
I think you misunderstood my answer. This container is for Prisma 1. Prisma 2 doesn't require any docker container. You can directly run it locally. I was talking about the database itself that you can either use a locally installed version or via a docker.
s
I know that portion between Prisma 1 and Prisma 2, but I think the misunderstanding comes from my end for creating a local database with PostgreSQL. Most of the documentation references using Heroku for the database via PostgreSQL, but I am referring to creating a local database.
r
You can either install Posgres locally on your system or use this Docker image to run Postgres locally and map it to your local PORT as well. And then you can follow this tutorial which explains getting started with Prisma 2.
s
Sorry for the late response but thank for the links - helped out a lot!