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

docker compose / sipi container config #994

Closed
gfoo opened this issue Sep 11, 2018 · 1 comment · Fixed by #997
Closed

docker compose / sipi container config #994

gfoo opened this issue Sep 11, 2018 · 1 comment · Fixed by #997
Assignees
Labels
bug something isn't working
Milestone

Comments

@gfoo
Copy link

gfoo commented Sep 11, 2018

Hello,
I have an issue when I use the docker-compose.yml for developer. Sipi try to connect to Knora with a wrong host (when Sipi want to get the authorization infos of an Image):
sipi | Sipi: Server.http() failed: Error #1185: HTTP GET request to http://webapihost:3333/v1/files/9kRQGJnRF2V-CNBfsULnUDy.jpx failed: Failed to connect to webapihost port 3333: Connection refused

My fix is to replace:

extra_hosts:
    - webapihost:0.0.0.0

with:

links:
      - "webapi:webapihost"

Gilles

@subotic
Copy link
Collaborator

subotic commented Sep 11, 2018

Thanks for reporting the bug. There are a lot of ways to go about this.

Extending the webapi service like this should also work.

networks:
    knora-net:
        aliases:
             - webapihost

Maybe changing webapihost permanently to webapi inside the sipi config would be the easiest. Then we could get rid of any aliases or extra_hosts.

@subotic subotic added the bug something isn't working label Sep 11, 2018
@subotic subotic added this to the 2018.10 milestone Sep 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants