Closed Myu-Unix closed 4 years ago
Hi @Myu-Unix , if you just go to http://snowstorm-front:8080/codesystems outside of any of the containers do you get an expected response?
Hello Rory,
No, since "snowstorm-front" is a docker-only resolvable name.
curl http://127.0.0.1:8080/codesystems works though.
Not entirely sure why yours isn't working, but I expect that it will link back to a network/name lookup issue between the host and Docker containers.
This may not be right for your environment, but as a guide to help you analyze further, the following docker-compose (based on the one in the snowstorm repo) did work, using the default nginx.conf in this repository:
version: '2.1'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:6.5.4
container_name: elasticsearch
environment:
- "ES_JAVA_OPTS=-Xms4g -Xmx4g"
volumes:
- ~/elastic/docker:/usr/share/elasticsearch/data
- ~/log:/dev/log
networks:
elastic:
aliases:
- es
healthcheck:
test: ["CMD", "curl", "-f", "http://es:9200"]
interval: 1s
timeout: 1s
retries: 60
ports:
- 9200:9200
mem_reservation: 4g
snowstorm:
image: snomedinternational/snowstorm:latest
container_name: snowstorm
depends_on:
elasticsearch:
condition: service_healthy
entrypoint: java -Xms2g -Xmx4g -jar snowstorm.jar --elasticsearch.urls=http://es:9200
volumes:
- ~/log:/dev/log
networks:
- elastic
ports:
- 8080:8080
browser:
image: snomedstorm-browser-nginx:latest
volumes:
- ~/Dev/sct-browser-frontend/:/usr/share/nginx/html
ports:
- "80:80"
networks:
- elastic
networks:
elastic:
Hello Rory,
It worked with a docker-compose based on the one you've shared above, thanks a lot !
I guess that answers my question, I'll close the issue.
Cheers.
Hello dears,
I am trying to run the sct-browser-fronted locally inside a docker-compose connected to a snowstorm 4.8.0 in the same docker-compose network.
I can access the UI just fine (after npm install, grunt) but upon trying to browse concepts I have several 400 and 404 errors.
From the sct-browser-fronted container, I can access the snowstorm just fine so network-wise it's OK
From the host, I can also confirm nginx is proxying requests to snowstorm routes correctly :
The UI error looks like this :
My nginx.conf looks like this :
I am building the sct-browser-fronted container with
And running it inside a docker-compose this way (full docker-compose ahead)
Could you help me out to understand if I made any setup mistakes or if it's a bug ?
Any pointers much appreciated :)
Cheers !