How does Docker fit into the picture?

Author: devuxerCreated Feb 18, 2019Updated Jun 15, 2026
Labels🗣Discussion

The Prisma - getting started page includes instructions for setting up Prisma + a database in Docker, and the graphql-node tutorial contains instructions on building an API server. What's missing is how to properly "Dockerize" the API server.

Can the API server be included in the same container as Prisma or should it be in a separate container? If they can be in the same container, do I need to modify the docker-compose.yml file or will it "just work" if I have the API server code and Prisma code in the same NPM project?

I would definitely appreciate any guidance you may have on this, and so others can benefit, I hope you will consider updating the tutorial. Ideally, there should be a one-stop shop for setting up an entire back-end in a way that can actually be deployed. This tutorial is the closest thing I've seen so far, and is very well done, but the Docker setup is a key missing piece.

Source: howtographql/howtographql