Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 450 Bytes

README.md

File metadata and controls

29 lines (19 loc) · 450 Bytes

go-microservice

basic usage

run locally

go run cmd/main.go

run docker

Building the docker image

docker build -t "go-microservice" .

Run the docker image without a config file. This will use some defaults.

docker run "go-microservice"

Run docker immage with a config file.

docker run --mount type=bind,source=<ABSOLUTE PATH>/config.yaml,target=/config/config.yaml "go-microservice"