Doveps / mono

Code for Doveps projects
http://doveps.com
MIT License
0 stars 0 forks source link

02-18-2018 Report #100

Closed JosiahRegencia closed 6 years ago

JosiahRegencia commented 6 years ago

Edited the Dockerfile. Patterned it after Dockerfile from http://containertutorials.com/docker-compose/flask-simple-app.html

docker-compose up -d db docker build -t mono_savant . docker run -d -p 5000:5000 mono_savant

these commands run without any errors. The problem is the curl command. Tried using hosts 0.0.0.0 and http://127.0.0.1. Results say curl: (52) Empty reply from server

in both cases. Still figuring that one out.

greenmoss commented 6 years ago

You can give docker run a container name, so it stays the same.

I'm not sure about network. It is either listening on http://127.0.0.1:5000, or you have to get the container IP. Thinking further, it should expose 5000. If it's not, might need a directive in your docker run so that it does.