Skip to content

umanda/prisma-testing-db

Repository files navigation

Docker images for Testing & Local development of Prisma based apps

These Docker images are designed to facilitate the local development and testing of applications based on Prisma.

If you find connecting and configuring databases to be a hassle when using Prisma, this docker can simplify the process of testing and developing applications with Prisma on your local environment.

Suport databases

  • PostgreSQL
  • MySQL
  • MariaDB
  • SQL Server
  • MongoDB
  • CockroachDB

Using docker-compose for databases

This is only intended to be run in a development environment where ports 3306 / default for MySQL - 5432 / default for PostgreSQL and 4306 custom port - MariaDB are free and not used.

If they are already used make sure to change the ports like this

ports:
  - '3307:3306' # only change the first number

Apple M1 and other ARM64 CPUs

Docker images for MySQL and Microsoft SQL Server only support x86_64 CPUs. Copy or link docker-compose.arm64.yml to docker-compose.override.yml to use ARMv8-compatible drop-in replacements (MariaDB and Azure SQL Edge) instead.

By default, Compose reads two files, a docker-compose.yml and an optional docker-compose.override.yml file. By convention, the docker-compose.yml contains your base configuration. The override file, as its name implies, can contain configuration overrides for existing services or entirely new services.

(https://docs.docker.com/compose/extends/#understanding-multiple-compose-files)

Usage

Start

In detached/background mode using -d (recommended)

docker-compose up -d
# Or start only one service
docker-compose up -d mysql
# To see logs
docker-compose logs -f mysql

In attached mode, the logs will be streamed in the terminal:

docker-compose up
# Or start only one service
docker-compose up mysql

Stop

docker-compose down

Delete all

docker-compose down -v --rmi all --remove-orphans

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published