Skip to content

Latest commit

 

History

History
98 lines (67 loc) · 1.53 KB

README.md

File metadata and controls

98 lines (67 loc) · 1.53 KB

Docker Local Database

A repository for fast database execution with dockers in a local development environment.

Support Databases

How To Use

git clone https://github.com/initred/docker-local-database
cd docker-local-database

Uncomment the required database in "docker-compose.yml". By default, only MySQL is unannotated.

If you need to set up a database. Modify the ".env" file.

For your information, mariadb is the same as mysql's environment variable.

How To Run

Run all databases used in docker-compose.yml in the background

docker-compose up -d

Run individually in the background of the database used in docker-compose.yml

docker-compose up -d mysql
docker-compose up -d mariadb
docker-compose up -d pgsql
docker-compose up -d redis
docker-compose up -d mongodb

How To Stop

Stops all databases used in docker-compose.yml.

docker-compose stop

Stops the database used in docker-compose.yml individually.

docker-compose stop mysql
docker-compose stop mariadb
docker-compose stop pgsql
docker-compose stop redis
docker-compose stop mongodb

How To Down

Drop all databases used in docker-compose.yml.

docker-compose down

Enjoy it Development!