Run MySQL Database on Docker

  • cd <path>/resources/docker
  • sudo docker-compose up (sudo for linux)

This will start a container MySQL Database running on localhost:3306.

  • DB_USER=root
    DB_PASSWD=codecamp
    DB_ADDR=localhost
    DB_PORT=3306
    DB_NAME=banking \

Open a client (like DBeaver) and use credentials above.

https://github.com/fotf91/go_rest_based_microservices