/gin_tutorial

gin + mongodb +docker

Primary LanguageGo

Gin + MongoDB + Docker + Authentication

Run auto hot reload:

air run main.go

Run server

go run main.go

Define template

{{ template "header.tmpl" . }}

Using docker file

docker build -t username/image_name:version .
docker run -it --name container_name --rm -p 3000:3000 username/image_name:version

Using docker-compose

docker-compose up

Run and build using docker-compose

docker-compose up --build