Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

http://localhost/ is unreachable #3

Closed
raihanflores opened this issue Sep 7, 2017 · 3 comments
Closed

http://localhost/ is unreachable #3

raihanflores opened this issue Sep 7, 2017 · 3 comments

Comments

@raihanflores
Copy link

HI,

Everything was installed without issues and I can also see that all 3 containers are running. But accessing http://localhost doesn't seem to work. I get This site can’t be reached is there something that I missed?

command: docker-compose up -d

Thanks,
Ryann

@born4new
Copy link
Contributor

born4new commented Sep 7, 2017

Hey @raihanflores,

You are actually missing the host port here...

If you do a docker-compose ps, you'll see to which port is your nginx install mapped to. In my case, the port is 32768:

         Name                        Command               State               Ports              
-------------------------------------------------------------------------------------------------
netboxdocker_netbox_1     /docker-entrypoint.sh            Up                                     
netboxdocker_nginx_1      nginx -g daemon off; -c /e ...   Up      443/tcp, 0.0.0.0:32768->80/tcp 
netboxdocker_postgres_1   docker-entrypoint.sh postgres    Up      5432/tcp  

Hitting http://localhost:32768 should work for you :).

@cimnine Don't we want to link to the host port 80 by default here? Either that or changing the README, so that we can have a seamless experience :).

@cimnine
Copy link
Collaborator

cimnine commented Sep 11, 2017

Port 80 is unfeasible, because it is a privileged port and requires superuser permissions for a program to bind to.

Updating the README would be the way to go IMO.

cimnine added a commit that referenced this issue Sep 11, 2017
Plus some adjustment to the `build.sh` help text.

Fixes #3
@cimnine
Copy link
Collaborator

cimnine commented Sep 11, 2017

Thank you for reporting this. I hope the README is clearer now.

cimnine pushed a commit that referenced this issue Apr 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants