POSTGRES_USER=prisma POSTGRES_PASSWORD=topsecret POSTGRES_DB=mydb # See https://www.prisma.io/docs/concepts/database-connectors/postgresql # Host value is the default container name for postgres - @nest-postgres:5432 # change it when changing the container name DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@nest-postgres:5432/${POSTGRES_DB}?schema=public # To have acccess to the database container from your local machine # use the DATABASE_URL below which replaces nest-postgres (container name) with localhost #DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@localhost:5432/${POSTGRES_DB}?schema=public