📰 Good News app. Backend in Golang. Docker Compose & Traefik v2.0.

Let’s run the project on local machine!


Docker Compose

Traefik v2.0

Run it!

> docker-compose build && docker-compose up -d
# Opening shell of mongo db running within our docker container
> docker exec -it mongo mongo -u "GGCTeamBatr" -p "MySuperSecretPassword" --authenticationDatabase admin
# Changing to (creating) a needed db
> use good_news_db
# Creating a super user
> db.createUser({user: 'suuuper_user', pwd: 'soop3r_U$eR_PSWD', roles:[{role:'dbOwner', db:'good_news_db'}]})
# Inserting test data to test collection
> db.test_collection.insert({ test: "test" })
# Displaying all collections of our previously created db in order to make sure that our test collection was successfully created
> show collections
# Saying goodbye to mongo shell
> exit
> docker-compose build && docker-compose up -d

Problems solver. Open Source Staff. MS in CS. https://batyr.io