[openstreetmap/openstreetmap-website] Add Docker Compose Support (#2406)

Jamie Alessio notifications at github.com
Mon Oct 21 16:15:47 UTC 2019

> Hi! Looks great so far. I was able to get a couple of containers up using your instructions. Please let me know if there's anything I can do to help 😄

@zerebubuth Any thoughts on how to handle persistence of Postgres data? There is some background information in the "Where to Store Data" section here: https://hub.docker.com/_/postgres

I personally prefer the _"Let Docker manage the storage"_ approach but I have found that people find that confusing since their data vanishes when you run `docker-compose down`. For me, that's a _feature_ but it seems to be surprising to people and can lead to unexpected data destruction which nobody likes.

Because of that I'm inclined to do with the _"Create a data directory on the host system (outside the container)"_ option. I find it weird to have a `PGDATA` directory on my host system that is only used in a container, but I suspect I'm in the minority.


_btw, right now it's using the _"Let Docker manage the storage"_ approach_

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20191021/609a96cc/attachment.html>

More information about the rails-dev mailing list