I created this repository to easily have a docker-compose ready for each type of databases I use through my learning and career.
The databases you can find here are:
On each folder you will find a file name .env.example create a new one by doing a copy and paste action or using a shell command like the Linux one right bellow:
cp .env.example .envChange the database credentials and execute the command:
docker-compose up -dNote
Just remember, for your applications have access to the database you can include the docker containers on the same network or just put the Host IP, in this case, your PC, to your database configuration files.
Warning
If you change the credentials on .env file and try to rebuild the docker, you need to remove the volume folders, since the credentials are stored there after you build the docker image, if you don't remove, the new credentials will not be applied.