This is stupid I wrote the
depends_on not in order I fix the issue writing the order like this :
depends_on: - redis - db
Before this I wrote it
dbfirst. and do not forget to change the host to appropriate name just like in the docker-compose.yml file. In this case is redis =
redis and mongodb =
I forget that in app.go I call redis first then mongodb.