[openstreetmap/openstreetmap-website] Enable the app to be built using Docker (#1290)

Paul Sturgess notifications at github.com
Sun Sep 18 20:02:19 UTC 2016


Hey @tomhughes. I'm definitely not an expert on the inner workings of Docker, but as I understand it the two containers defined in the `docker-compose` do talk directly to each other. Hence the need for the setting of `host: db` in the `database.yml` file – basically this translates to the IP address the `db` container is using without actually having to hard-code an IP.

The port `5432` is also defined in the `docker-compose` – this is to make it available to your local machine. As you discovered, this clashes if you also have Postgres running locally on the same port. Obviously the idea with Docker is that you don't need to run any services locally.

Hope this makes sense.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/1290#issuecomment-247872288
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20160918/01d0820a/attachment-0001.html>


More information about the rails-dev mailing list