🌐
GitHub
github.com › grdnmsz › prisma-docker
GitHub - grdnmsz/prisma-docker: Template project to bootstrap a back-end application with nodejs (express), postgresql and prisma within a docker container. · GitHub
Template project to bootstrap a back-end application with nodejs (express), postgresql and prisma within a docker container. - grdnmsz/prisma-docker
Starred by 37 users
Forked by 7 users
Languages   TypeScript 85.5% | Dockerfile 14.5%
Discussions

How to dockerize Node + Prisma
This tutorial looks like it explains everything you need to know. I'm not sure what running Prisma as a separate service means; Prisma is simply an ORM (responsible for querying your database). Your application must handle HTTP requests - though many of these routes might be very thin layers over a call to Prisma. Your Dockerfile should be fairly straightforward at first - you don't need to overthink it. Have one build step where you install dependencies and build the package. Then one run step where you run docker CMD [server.js] or whatever your package is. The only difference from what you do when you run this locally is you'll want to use next build instead of running the development server. Good luck! More on reddit.com
🌐 r/node
21
14
April 3, 2023
node.js - How to use Prisma to generate database tables in Docker - Stack Overflow
I'm trying to make a minimal Express app. It has a single endpoint /users that either GETs all users in a Postgres database, or POSTs a new user. I'm trying to use Prisma as an ORM and run everything with docker-compose. More on stackoverflow.com
🌐 stackoverflow.com
Need Docker Prisma Express example
No, but you should provide some details of your work and the error message if you want to be taken seriously. This also isn't called boilerplate. More on reddit.com
🌐 r/docker
6
1
December 25, 2023
node.js - Using prisma in a dockerfile? - Stack Overflow
I have a node express project using prisma as the ORM. I want to be able to run prisma migrate and prisma generate in the dockerfile. However these commands do not seem to work in a dockerfile. My question is - is it possible to automate prisma migrations in a dockerfile without user intervention? More on stackoverflow.com
🌐 stackoverflow.com
🌐
Prisma
prisma.io › home › docker › docker › docker
How to use Prisma in Docker | Prisma Documentation
By following this guide, you've successfully containerized your Prisma app and database using Docker Compose. ... Learn step-by-step how to integrate Prisma ORM with Turborepo to build modular, scalable monorepo architectures efficiently · Prerequisites1. Set up your Node.js and Prisma application1.1. Initialize your project1.2. Install required dependencies1.3. Set up Prisma ORM1.4. Create an Express.js server2.
🌐
GitHub
github.com › AlexSKuznetsov › prisma-express
GitHub - AlexSKuznetsov/prisma-express: Backend Node.js boilerplate with TypeScript, Prisma, Express.js, PostgreSQL and pgAdmin inside Docker containers. · GitHub
Backend Node.js boilerplate with TypeScript, Prisma, Express.js, PostgreSQL and pgAdmin inside Docker containers. - AlexSKuznetsov/prisma-express
Starred by 17 users
Forked by 4 users
Languages   TypeScript 74.7% | Shell 16.2% | Dockerfile 6.2% | JavaScript 2.9%
🌐
Reddit
reddit.com › r/node › how to dockerize node + prisma
r/node on Reddit: How to dockerize Node + Prisma
April 3, 2023 -

TLDR: Does anyone have a tutorial on how to set up Node (Next.js) + Prisma + Postgres with Docker Compose in 2023?

Hey everyone! I'm a junior Python developer who has been getting into web dev lately, and I've been struggling on a problem for days without a solution. I was hoping someone here might be able to help!

Specifically, I'm having trouble dockerizing a Next.js application that uses Prisma + Postgres. I'm hoping someone might be able to provide some guidance on how to do this in 2023. All of the tutorials I've seen have had different methods of doing this, some using deprecated compose features, some setting up Prisma as a separate service, etc. Any guidance is appreciated!

🌐
Stack Overflow
stackoverflow.com › questions › 75954535 › how-to-use-prisma-to-generate-database-tables-in-docker
node.js - How to use Prisma to generate database tables in Docker - Stack Overflow
That means that I'm assuming that no existing database volume exists, so, upon building the images, Docker needs to · Create a users database in the Postgres container (? I'm not sure if this is created by default as defined in the connection URL) Create a users table within that database, which I'm hoping to do with npx prisma db push so that the schema.prisma file is used
🌐
Medium
medium.com › @abhijariwala › dockerizing-a-next-js-and-node-js-app-with-postgresql-and-prisma-a-complete-guide-000527023e99
Dockerizing a Next.js and Node.js App with PostgreSQL and Prisma: A Complete Guide | by Abhi jariwala | Medium
May 25, 2024 - // This is your Prisma schema file, // learn more about it in the docs: https://pris.ly/d/prisma-schema generator client { provider = "prisma-client-js" } datasource db { provider = "postgresql" url = env("DATABASE_URL") } model Category { id String @id @default(uuid()) name String Product Product[] } model Product { id String @id @default(uuid()) name String categoryId String category Category @relation(fields: [categoryId], references: [id]) price Float quantity Int createdAt DateTime @default(now()) } ... import express from "express"; import morgan from "morgan"; import path from "path"; i
🌐
Reddit
reddit.com › r/docker › need docker prisma express example
r/docker on Reddit: Need Docker Prisma Express example
December 25, 2023 -

HI

i recently tried to use docker with Prisma node express, I struggle that my express server can not connect to MySQL via Prisma, I try

  1. prisma url use container name

  2. add connection delay before mysql conplete load

  3. change node verison 14 to 18

I literally try and search every possible way from Stackoverflow

can someone share the example?

my github : https://github.com/Jimmy1186/docker-prisma-test

EDIT:

thanks everyone help, i success connect to mysql container,

Find elsewhere
🌐
YouTube
youtube.com › francesco ciulla
Full Stack Web App: Next.js, Node.js , Express, Prisma, Posgres, Docker (PERN) - YouTube
Let's create a very minimalistic Full Stack Web application App, with these technologies:- Next.js 14- Node.js- Express- Prisma - Docker- Docker ComposeWe wi...
Published   December 10, 2023
Views   21K
🌐
Dev Recipes
devrecipes.net › home › dockerizing node.js, prisma orm, and postgres – a complete tutorial
Dockerizing Node.js, Prisma ORM, and Postgres - A Complete Tutorial
May 25, 2025 - Let’s create a Dockerfile.migrations file with the following content: FROM node:22-alpine # Required for schema generation RUN apk add --no-cache openssl WORKDIR /app COPY package*.json ./ # Copy the prisma schema before npm install COPY prisma ./prisma # This script allow us to detect when Postgres is running so that we can run our application without errors # Source: https://github.com/eficode/wait-for/blob/master/wait-for COPY wait-for.sh .
🌐
DEV Community
dev.to › samuelmbabhazi › api-rest-avec-prisma-postgresql-et-express-5705
API REST avec Prisma , PostgreSQL et Express - DEV Community
May 14, 2024 - Dans cette étape, vous allez installer la CLI Prisma , créer votre fichier de schéma Prisma initial , configurer PostgreSQL avec Docker et y connecter Prisma.
🌐
DEV Community
dev.to › abeertech01 › dockerize-pern-typescript-app-using-prisma-orm-with-docker-compose-415n
Dockerize PERN-TypeScript App Using Prisma ORM With Docker Compose - DEV Community
October 16, 2024 - import express, { Request, Response } from "express" import "dotenv/config" import cors from "cors" import { corsOptions } from "./constants/config" const app = express() const PORT = process.env.PORT || 3000 app.use(express.json()) app.use(express.urlencoded({ extended: true })) app.use(cors({ const corsOptions = { origin: process.env.CLIENT_URL || 'http://localhost:5173', credentials: true, } })) app.get("/", (req: Request, res: Response) => { res.json({ message: "Hello, TypeScript with Express! Updated!", }) }) app.post("/register", async (req: Request, res: Response) => { const { name, use
🌐
Answer Overflow
answeroverflow.com › m › 1322151881740652624
Prisma Mongodb & Express Res API Docker - Prisma
December 27, 2024 - Next-generation ORM for Node.js & TypeScript | PostgreSQL, MySQL, MariaDB, SQL Server, SQLite, MongoDB and CockroachDB - prisma/prisma ... Hi Nurul, thank you for your quick reply! I successfully managed to run this docker-compose: https://github.com/prisma/prisma-examples/blob/latest/databases/mongodb/docker-compose.yml And the REST API worked perfectly when I made it start from the terminal as a node application.
🌐
Tericcabrel
blog.tericcabrel.com › build-docker-image-nodejs-prisma
Build the Docker image of a Node.js project using Prisma
June 25, 2024 - This post will show you how to build the Docker image of a Node.js application that uses Prisma as the ORM to interact with your database. We will publish the image to the Docker Hub
🌐
GitHub
github.com › grdnmsz › prisma-docker › blob › main › Dockerfile
prisma-docker/Dockerfile at main · grdnmsz/prisma-docker
Template project to bootstrap a back-end application with nodejs (express), postgresql and prisma within a docker container. - prisma-docker/Dockerfile at main · grdnmsz/prisma-docker
Author   grdnmsz
🌐
Reddit
reddit.com › r/docker › dockerize node, postgres and prisma
r/docker on Reddit: Dockerize Node, Postgres and Prisma
May 22, 2023 -

I am trying to dockerize a Node server running Express and Prisma, and an instance of Postgres.

The goal is to have a single repo, where I can type docker-compose up and everything is spun up at once, in the right order. From what I have found online, it seems that the Postgres container needs to be fully functioning before the Node container should spin up.

At which point in this chain should the PrismaClient information be generated/copied, and using what command? npx prisma generate or npx prisma migrate dev or something else?

I am a bit burnt out on this, to the point that I've tried probably 20 different solutions, Dockerfiles, docker-compose files, tweaking, resetting, etc. With that being said, I'm probably not even articulating what is going wrong properly.

Does anyone have an example of a working Dockerfile, docker-compose.yml, the right scripts in package.json, etc. that successfully build a Postgres server, Node server, and handle all of the Prisma requirements in the right order to make composing up/down quick and easy?

Thank you in advance!