Skip to content

http://localhost:8000 - Blank page in browser #287

Answered by fr1cklr
fr1cklr asked this question in Q&A
Discussion options

You must be logged in to vote

I found out, that it's important that the -e ENV variables need to appear before the -v, otherwise they won't be set as desired.

DOES NOT WORK

pi@pi5:~ $ sudo docker run -it --rm -p 8000:8000/tcp
-v /home/pi/2fauth:/2fauth 2fauth/2fauth
-e AUTHENTICATION_GUARD=web-guard
-e APP_URL=http://localhost:8000
-e ASSET_URL=http://localhost:8000

WORKS

pi@pi5:~ $ sudo docker run -it --rm -p 8000:8000/tcp
-e AUTHENTICATION_GUARD=web-guard
-e APP_URL=http://localhost:8000
-e ASSET_URL=http://localhost:8000
-v /home/pi/2fauth:/2fauth 2fauth/2fauth

With this, my first question is answered.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by fr1cklr
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant