This is a very simple Dockerfile that combines Prisma and wait-for-it.
In the official Docker image Prisma starts up in the container and immediately tries to connect to the database specified in its configuration. When running in CI, for example CircleCI, that database is likely not ready when Prisma starts. This uses wait-for-it to wait for that database prior to starting Prisma.
docker pull duffn/prisma-wait-for-it:latest
You can also select a few different tags.
Run the container and pass in a DATABASE environment variable for your database. The default is localhost:5432.
docker run -e DATABASE_HOST=localhost:3306 duffn/prisma-wait-for-it:latest
Content type
Image
Digest
Size
126.2 MB
Last updated
almost 6 years ago
docker pull duffn/prisma-wait-for-it