Newb Question: Docker compose up worked but where to point my browser to see it?

81 views
Skip to first unread message

Daniel Hollinger

unread,
Nov 3, 2022, 5:57:46 PM11/3/22
to Review Board Community
I've gotten "docker compose up" working using the file at https://github.com/reviewboard/reviewboard/blob/release-5.0/contrib/docker/examples/docker-compose.postgres.yaml and the command "sudo docker-compose -f docker-compose.postgres.yaml -p reviewboard_postgres up"

I can see the docker instance running and when I go to <machine's IP> I get a message 'Welcome to nginx'

Now perhaps I'm missing something and there is no reviewboard to review, but if there is I don't know how to point my browser to the correct location.

What am I missing here?

Christian Hammond

unread,
Nov 3, 2022, 10:40:35 PM11/3/22
to revie...@googlegroups.com
Hi Daniel,

You'll access the Nginx server's IP, but you'll need to access via the configured hostname. This may require putting a mapping in /etc/hosts or the equivalent on Windows. For security reasons, both Nginx and Review Board will only respond to requests made to that hostname, to avoid various forms of attacks.

Christian

--
Supercharge your Review Board with Power Pack: https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
---
You received this message because you are subscribed to the Google Groups "Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/reviewboard/50a9b483-4122-47ac-879e-0ff310d4971bn%40googlegroups.com.


--
Christian Hammond
President/CEO of Beanbag
Makers of Review Board

Daniel Hollinger

unread,
Nov 4, 2022, 2:39:55 PM11/4/22
to revie...@googlegroups.com
Thanks, that part wasn't at all clear to me.  I've added 
<target IP>  reviews.example.com

to my hosts file on my windows machine, and when I go to reviews.example.com (again using the default docker-compose on git for postgres) I get an nginx page saying

"

Welcome to nginx!

If you see this page, the nginx web server is successfully installed and working. Further configuration is required.

For online documentation and support please refer to nginx.org.
Commercial support is available at nginx.com.

Thank you for using nginx."

So something is still wrong/missing, any thoughts?


You received this message because you are subscribed to a topic in the Google Groups "Review Board Community" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/reviewboard/VGj2XDjvbDc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to reviewboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/reviewboard/CAE7Vnd%3Du%3DJawowhe1KM9jOXCbBr%2BmtKbmMcD%2Bau8MsykuUoaKQ%40mail.gmail.com.

Petr Tlapa

unread,
Feb 16, 2023, 12:12:22 PM2/16/23
to Review Board Community
Hi Daniel,

I'm having the same issue, have you managed to somehow fix it?

Thank you for you time
~PT
PS: sorry if this is a duplicate

Dne pátek 4. listopadu 2022 v 19:39:55 UTC+1 uživatel Daniel Hollinger napsal:

Gábor Lipták

unread,
Feb 17, 2023, 8:37:46 PM2/17/23
to Review Board Community
with 5.0.2 after setting

127.0.0.1       reviews.example.com

in /etc/hosts

I started docker-compose with unchanged configuration and I'm seeing HTTP 400:

curl http://reviews.example.com

<!doctype html>
<html lang="en">
<head>
  <title>Bad Request (400)</title>
</head>
<body>
  <h1>Bad Request (400)</h1><p></p>
</body>
</html>

Christian Hammond

unread,
Feb 17, 2023, 9:10:46 PM2/17/23
to revie...@googlegroups.com
This is likely a mismatch between your hostname and what's in ALLOWED_HOSTS in the site directory's conf/settings_local.py file. If the name has at all changed, you'll need to make sure it's also present there.

I mentioned this on the other thread, but we're going to be putting up some better configuration files and documentation soon:


Christian


Petr Tlapa

unread,
Feb 23, 2023, 3:24:02 AM2/23/23
to Review Board Community
Thank you!

Yes, that was the issue. The info from new(planned) README, more specifically:
```
**NOTE:** If you change this later, you will need to edit the sitedir

volume's `conf/settings_local.py` to include the new hostname in

`ALLOWED_HOSTS`, and change the hostname in Review Board's **Admin UI ->
General Settings** page.
```

(which is what you said here) is crucial knowledge.

Thank you once more,
~PT

Dne sobota 18. února 2023 v 3:10:46 UTC+1 uživatel Christian Hammond napsal:
Reply all
Reply to author
Forward
0 new messages