Open nicokant opened 1 year ago
I seems to be hardcoded, is there a way to read from environment variables at run time? https://github.com/smartcommunitylab/smartcampus.gamification/blob/40dec44f114e07074b9dda9a9db253c330b34bf4/game-engine.tools/game-statistic/src/main/java/it/smartcommunitylab/gamification/game_statistics/App.java#L37
It seems that gamification.env
is missing an example variable:
SPRING_DATA_MONGODB_URI=mongodb://mongo:27017/gamification
Hi, I'm trying to setup the project using Docker, but I keep getting the same error:
The docker image is built on the master branch, the docker compose is the following:
the
gamification.env
instead is the following:It's strange that it keeps trying to connect to
localhost:27017
whilegamification.env
set the HOST tomongo
How can I solve this? Thank you!