Git Product home page Git Product logo

Comments (8)

rovats avatar rovats commented on June 27, 2024 1

Also mentioned on the main README.md, but happy to update the docs if it isn’t clear:

https://github.com/rovats/waltz-docker#step-1-setup-maven-profiles

from waltz-docker.

rovats avatar rovats commented on June 27, 2024 1

@davidwatkins73 , I have improved the documentation as part of this issue. Are you happy for this to be closed?

from waltz-docker.

davidwatkins73 avatar davidwatkins73 commented on June 27, 2024

For the record:

  • Linux Mint 19
  • Docker 19.03.11

from waltz-docker.

rovats avatar rovats commented on June 27, 2024

Ah, localhost won't work from within the docker container.
You'll need to find the IP address of the Postgres container, and use that in the maven profile, like described here:

https://github.com/rovats/waltz-docker/blob/master/database/postgres/README.md#find-ip-address-of-the-postgres-server-to-use-in-maven-settingsxml

from waltz-docker.

rovats avatar rovats commented on June 27, 2024

@davidwatkins73 ^

from waltz-docker.

davidwatkins73 avatar davidwatkins73 commented on June 27, 2024

Thanks @rovats, that seems to have fixed it. Yes, it was my inability to follow instructions.

I don't know much about docker but this seems very complicated. Is there anything we can do on the core Waltz side to simplify - or is this stuff fairly obvious once you understand Docker ?

from waltz-docker.

rovats avatar rovats commented on June 27, 2024

I think once you understand how Docker networking works, this shouldn't be too much of an issue.
https://docs.docker.com/engine/reference/run/#network-settings

There are various ways to access the host machine from a container: setting up your own network, assigning a static IP address to your host machine (in the custom network), or a static IP to your container in the custom network (this is useful since container IP addresses are dynamic - assigned in incremental order at container startup).

Also, there is a special dns name host.docker.internal that can be used to access the host (or 172.0.17.1 might also work):
https://docs.docker.com/docker-for-mac/networking/#i-want-to-connect-from-a-container-to-a-service-on-the-host

A few more options listed here:
https://stackoverflow.com/questions/24319662/from-inside-of-a-docker-container-how-do-i-connect-to-the-localhost-of-the-mach

Happy to include some more information in the docs to make this clear - Done, let me know if the docs can be improved further.

from waltz-docker.

davidwatkins73 avatar davidwatkins73 commented on June 27, 2024

Hi, yes, happy for this to be closed. Thanks!

from waltz-docker.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.