Closed JosiahRegencia closed 6 years ago
Ah interesting. In the app.run
context, 0.0.0.0
means "listen on every interface".
For the "db" shortcut: the name "db" is only set up for you automatically by docker-compose. Since you're running this with normal docker
commands, instead of docker-compose
, you won't get "db". You will have to manually set the db name/IP when you test with only docker.
Yup. I'm working on it right now. I have a couple of initial ideas
Found a way to let the curl commands work. Had to specify the host in run.py to 0.0.0.0: https://github.com/Doveps/mono/blob/6eb4140b253456402eeeb8ea323cf4c7a3ffb0a2/savant/run.py#L7
However I'm faced with another problem. When I tried using "db" as the host
When I tried using 127.0.0.1
I'm still not certain why. Still searching for that one. At least it's a step forward.