A repository for fast database execution with dockers in a local development environment.
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.
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
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
Drop all databases used in docker-compose.yml.
docker-compose down
Enjoy it Development!