Sign inSign up

duffn/prisma-wait-for-it

By duffn

Updated almost 6 years ago

Image
0

336

duffn/prisma-wait-for-it repository overview

prisma-wait-for-it

What is this?

This is a very simple Dockerfile that combines Prisma and wait-for-it.

Why is this?

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.

Usage

  • Pull the image from Docker Hub.
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

License

MIT

Tag summary

Content type

Image

Digest

Size

126.2 MB

Last updated

almost 6 years ago

docker pull duffn/prisma-wait-for-it