Docker Compose MariaDB Multiple Database

Image for post
Image for post
Docker Compose MariaDB Multiple Database

Why we need multiple databases?

Let’s Start Creating Multiple Environment Database

Project
├── docker-compose.yml (File)
├── init (Directory)
│ ├── 01.sql (File)
Image for post
Image for post
volumes:             
- ./init:/docker-entrypoint-initdb.d
docker-compose up

How to test connection

Image for post
Image for post
http://localhost:8080
Image for post
Image for post
user
user
Image for post
Image for post

Written by

We teach & develop for startups

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store