-
Notifications
You must be signed in to change notification settings - Fork 38
Default configuration yields 502 Bad Gateway
#2
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
Comments
It’s been some time since I’ve looked at this repository and I did notice some things that have not aged well… In the meantime I’ve updated the repository to use an older, but known working tag for the OHIF viewer, and have set all other docker references to be the most recent working version for this configuration. Starting with a clean clone of the updated repository, all things worked as expected on a CentOS 7 box for me, but depending on your host, you may have to tweak permissions for the database/data related directories that get created. |
Really appreciate you sharing this repo Michael. I experienced the same issue as @GTLangseth yesterday. Retried again today with your new versions and worked flawlessly on a Ubuntu 18.04 LTS server. I edited ./nginx/default.conf to replace 127.0.0.1 with the server's IP prior to docker-compose - not sure that was necessary, but it didn't hurt. |
Awesome, thanks for the support @mjstealey! I plan to try later this weekend. |
Glad to hear things worked out for you :-) |
Also tested on Ubuntu 18.04 LTS and it is working for me! Tried to build locally on macOS Catalina 10.15.2 and ran into the 502 error, which based on your response must have to do with proxy / redirection issues or the default set of macOS system-level permissions. I'm going to trouble shoot to see if there is a quick fix to get running locally in case other users want to develop on macOS but happy it is working for my Ubuntu instance :-) Thanks again for the help! |
Where is the DNS done for the below domains ? |
Locally on the subnet created by Docker Compose. All containers that are defined within a single docker-compose.yml file will have "knowledge" of each others network routing and can reference one another via their Compose short name. Using the viewer:
image: ohif/viewer:v1.x
container_name: viewer
depends_on:
- mongo
- orthanc
restart: always
networks:
- frontend
- backend
# ports:
# - 3000:3000
... And even though the Had the containers not been defined together in a docker-compose file they'd need to have their docker-based IP address discovered at runtime using a |
Using the basic setup, I am getting a 502 error when I visit
127.0.0.1:8443/
.I've tried starting just the postgres and mongo instances first as well as all containers together.
The text was updated successfully, but these errors were encountered: