Skip to content
This repository was archived by the owner on Jul 20, 2023. It is now read-only.

Latest commit

 

History

History
25 lines (17 loc) · 1.64 KB

File metadata and controls

25 lines (17 loc) · 1.64 KB

Build Status Go Report Card Work in progress..

MariaDB for Microservices

MariaDB for Microservices is a working example on how to create an application using the microservice architectural approach and the MariaDB Server.

How does it work?

This project consists out of 5 services, a shared library, 1 database and a webserver (also serves as proxy). We use docker for to deploy and run each service.

Requirements

  • Docker (version 17.03.1)

Usage

To run the application we first have to set-up a cluster of machines, after that we have to configure our database, we end with bootstrapping the application. Create a cluster of 5 machines with the following command: ./create_machines.sh. This script also install a visualizer and etcd for service discovery.

Now pass the location of the etcd service to the database configuration. To do that you have to edit the docker-compose-stacks.yml file and add the IP and port to the “DISCOVERY_SERVICE” environment variable of the database. The configuration should be on line 126. You can get the IP by using the command docker-machine ip manager-1.

The last thing to do is to deploy the application, use the command docker stack deploy --compose-file docker-compose-stacks.yml demo

Feedback & Issues

  • Feel free to report bugs or suggestions through the Github issues page.

Authors

  • Bjorge Staijen