realpython / orchestrating-docker

https://realpython.com/blog/python/dockerizing-flask-with-compose-and-machine-from-localhost-to-the-cloud/
465 stars 154 forks source link

I follow the instructions in the tutorial, which all succeed, but the page is empty. #8

Closed alexlenail closed 8 years ago

alexlenail commented 8 years ago

Seems like everything is working. So why does this fail? I don't even know where to begin debugging this.

docker-compose run web env                                                                 Alex@Maxs-MacBook-Pro-3
Starting orchestratingdocker_data_1
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
HOSTNAME=b545383099a0
TERM=xterm
WEB_1_PORT=tcp://172.17.0.2:8000
WEB_1_PORT_8000_TCP=tcp://172.17.0.2:8000
WEB_1_PORT_8000_TCP_ADDR=172.17.0.2
WEB_1_PORT_8000_TCP_PORT=8000
WEB_1_PORT_8000_TCP_PROTO=tcp
WEB_1_NAME=/orchestratingdocker_web_run_3/web_1
WEB_1_ENV_DB_PASS=postgres
WEB_1_ENV_DB_NAME=postgres
WEB_1_ENV_DB_USER=postgres
WEB_1_ENV_DB_SERVICE=postgres
WEB_1_ENV_SECRET_KEY=5(15ds+i2+%ik6z&!yer+ga9m=e%jcqiz_5wszg)r-z!2--b2d
WEB_1_ENV_DEBUG=False
WEB_1_ENV_DB_PORT=5432
WEB_1_ENV_LANG=C.UTF-8
WEB_1_ENV_GPG_KEY=97FC712E4C024BBEA48A61ED3A5CA953F73C700D
WEB_1_ENV_PYTHON_VERSION=3.4.4
WEB_1_ENV_PYTHON_PIP_VERSION=8.1.1
ORCHESTRATINGDOCKER_POSTGRES_1_PORT=tcp://172.17.0.3:5432
ORCHESTRATINGDOCKER_POSTGRES_1_PORT_5432_TCP=tcp://172.17.0.3:5432
ORCHESTRATINGDOCKER_POSTGRES_1_PORT_5432_TCP_ADDR=172.17.0.3
ORCHESTRATINGDOCKER_POSTGRES_1_PORT_5432_TCP_PORT=5432
ORCHESTRATINGDOCKER_POSTGRES_1_PORT_5432_TCP_PROTO=tcp
ORCHESTRATINGDOCKER_POSTGRES_1_NAME=/orchestratingdocker_web_run_3/orchestratingdocker_postgres_1
ORCHESTRATINGDOCKER_POSTGRES_1_ENV_GOSU_VERSION=1.7
ORCHESTRATINGDOCKER_POSTGRES_1_ENV_LANG=en_US.utf8
ORCHESTRATINGDOCKER_POSTGRES_1_ENV_PG_MAJOR=9.5
ORCHESTRATINGDOCKER_POSTGRES_1_ENV_PG_VERSION=9.5.2-1.pgdg80+1
ORCHESTRATINGDOCKER_POSTGRES_1_ENV_PGDATA=/var/lib/postgresql/data
POSTGRES_PORT=tcp://172.17.0.3:5432
POSTGRES_PORT_5432_TCP=tcp://172.17.0.3:5432
POSTGRES_PORT_5432_TCP_ADDR=172.17.0.3
POSTGRES_PORT_5432_TCP_PORT=5432
POSTGRES_PORT_5432_TCP_PROTO=tcp
POSTGRES_NAME=/orchestratingdocker_web_run_3/postgres
POSTGRES_ENV_GOSU_VERSION=1.7
POSTGRES_ENV_LANG=en_US.utf8
POSTGRES_ENV_PG_MAJOR=9.5
POSTGRES_ENV_PG_VERSION=9.5.2-1.pgdg80+1
POSTGRES_ENV_PGDATA=/var/lib/postgresql/data
POSTGRES_1_PORT=tcp://172.17.0.3:5432
POSTGRES_1_PORT_5432_TCP=tcp://172.17.0.3:5432
POSTGRES_1_PORT_5432_TCP_ADDR=172.17.0.3
POSTGRES_1_PORT_5432_TCP_PORT=5432
POSTGRES_1_PORT_5432_TCP_PROTO=tcp
POSTGRES_1_NAME=/orchestratingdocker_web_run_3/postgres_1
POSTGRES_1_ENV_GOSU_VERSION=1.7
POSTGRES_1_ENV_LANG=en_US.utf8
POSTGRES_1_ENV_PG_MAJOR=9.5
POSTGRES_1_ENV_PG_VERSION=9.5.2-1.pgdg80+1
POSTGRES_1_ENV_PGDATA=/var/lib/postgresql/data
ORCHESTRATINGDOCKER_WEB_1_PORT=tcp://172.17.0.2:8000
ORCHESTRATINGDOCKER_WEB_1_PORT_8000_TCP=tcp://172.17.0.2:8000
ORCHESTRATINGDOCKER_WEB_1_PORT_8000_TCP_ADDR=172.17.0.2
ORCHESTRATINGDOCKER_WEB_1_PORT_8000_TCP_PORT=8000
ORCHESTRATINGDOCKER_WEB_1_PORT_8000_TCP_PROTO=tcp
ORCHESTRATINGDOCKER_WEB_1_NAME=/orchestratingdocker_web_run_3/orchestratingdocker_web_1
ORCHESTRATINGDOCKER_WEB_1_ENV_DB_PASS=postgres
ORCHESTRATINGDOCKER_WEB_1_ENV_DB_NAME=postgres
ORCHESTRATINGDOCKER_WEB_1_ENV_DB_USER=postgres
ORCHESTRATINGDOCKER_WEB_1_ENV_DB_SERVICE=postgres
ORCHESTRATINGDOCKER_WEB_1_ENV_SECRET_KEY=5(15ds+i2+%ik6z&!yer+ga9m=e%jcqiz_5wszg)r-z!2--b2d
ORCHESTRATINGDOCKER_WEB_1_ENV_DEBUG=False
ORCHESTRATINGDOCKER_WEB_1_ENV_DB_PORT=5432
ORCHESTRATINGDOCKER_WEB_1_ENV_LANG=C.UTF-8
ORCHESTRATINGDOCKER_WEB_1_ENV_GPG_KEY=97FC712E4C024BBEA48A61ED3A5CA953F73C700D
ORCHESTRATINGDOCKER_WEB_1_ENV_PYTHON_VERSION=3.4.4
ORCHESTRATINGDOCKER_WEB_1_ENV_PYTHON_PIP_VERSION=8.1.1
WEB_PORT=tcp://172.17.0.2:8000
WEB_PORT_8000_TCP=tcp://172.17.0.2:8000
WEB_PORT_8000_TCP_ADDR=172.17.0.2
WEB_PORT_8000_TCP_PORT=8000
WEB_PORT_8000_TCP_PROTO=tcp
WEB_NAME=/orchestratingdocker_web_run_3/web
WEB_ENV_DB_PASS=postgres
WEB_ENV_DB_NAME=postgres
WEB_ENV_DB_USER=postgres
WEB_ENV_DB_SERVICE=postgres
WEB_ENV_SECRET_KEY=5(15ds+i2+%ik6z&!yer+ga9m=e%jcqiz_5wszg)r-z!2--b2d
WEB_ENV_DEBUG=False
WEB_ENV_DB_PORT=5432
WEB_ENV_LANG=C.UTF-8
WEB_ENV_GPG_KEY=97FC712E4C024BBEA48A61ED3A5CA953F73C700D
WEB_ENV_PYTHON_VERSION=3.4.4
WEB_ENV_PYTHON_PIP_VERSION=8.1.1
DB_PASS=postgres
DB_NAME=postgres
DB_USER=postgres
DB_SERVICE=postgres
SECRET_KEY=5(15ds+i2+%ik6z&!yer+ga9m=e%jcqiz_5wszg)r-z!2--b2d
DEBUG=False
DB_PORT=5432
LANG=C.UTF-8
GPG_KEY=97FC712E4C024BBEA48A61ED3A5CA953F73C700D
PYTHON_VERSION=3.4.4
PYTHON_PIP_VERSION=8.1.1
HOME=/root
alexlenail commented 8 years ago

Nope, I'm just stupid. docker-machine ip gave me the wrong IP.