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

Hapi Fhir inside docker doesn't seem to work (Weird behavior) #34

Closed
ghost opened this issue Jun 14, 2019 · 2 comments · Fixed by #35
Closed

Hapi Fhir inside docker doesn't seem to work (Weird behavior) #34

ghost opened this issue Jun 14, 2019 · 2 comments · Fixed by #35

Comments

@ghost
Copy link

ghost commented Jun 14, 2019

Hello,
your repo works very well with mvn jetty:run, however the docker version is pretty weird.

  1. The start page is https://localhost:8080 instead of https://localhost:8080/hapi-fhir-jpaserver.

  2. I only get 404 (Screen shot):

Screenshot from 2019-06-14 03-35-16

Following is my docker-compose:

version: "2"
services:
  happy:
    build: .
    image: fhir
    container_name: fhir
    restart: always
    ports:
      - 8080:8080
@ghost
Copy link
Author

ghost commented Jun 14, 2019

I solved the problem. For following people, reconfigure your Dockerfile to:

FROM jetty:9-jre8-alpine
USER jetty:jetty
ADD ./target/hapi-fhir-jpaserver.war /var/lib/jetty/webapps/hapi-fhir-jpaserver.war
EXPOSE 8080

@ghost ghost closed this as completed Jun 15, 2019
@jamesagnew
Copy link
Contributor

Hi Long, thanks for the update! If by chance you wanted to submit a pull request with your updated instructions, it would be welcome!

patrick-werner added a commit to patrick-werner/hapi-fhir-jpaserver-starter that referenced this issue Jun 17, 2019
fixes hapifhir#34 
thanks @longnguyen2306 !
This issue was closed.
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

Successfully merging a pull request may close this issue.

1 participant