By default this microservice load config file env.yaml from directories:
- "./configs"
- "$HOME/configs"
And it is using prefix APP_ to overwriting values from enviroment variables.
Example config file:
port: :8080
mongo:
host: localhost
port: 27017
database: test
logger:
logFile: /tmp/file.logdocker build -t jhidalgo3/training-docker-microservice --rm .
docker run --rm -ti -p 8080:8080 -e VERSION=1.0 -v $PWD/src/github.com/jhidalgo3/training-docker-microservice/configs:/root/configs jhidalgo3/training-docker-microservice
API
VUE application
https://github.com/jhidalgo3/training-docker-microservice
Author: Jose Maria Hidalgo Garcia MIT License