[openstreetmap/openstreetmap-website] Add Docker Compose Support for Development Environment (#2409)

François de Metz notifications at github.com
Sat May 9 13:55:23 UTC 2020


Since a few weeks, the postgres image on the docker hub has changed and if no password is set, you have to set the `POSTGRES_HOST_AUTH_METHOD` environment variable to `trust`.
Also instead of mounting the local directory for the postgres data, I just used the default volume of the postgres image.

Here is my patch
```
diff --git a/docker-compose.yml b/docker-compose.yml
index 70730febf..5d7943e1c 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -19,6 +19,5 @@ services:
     ports:
       - "54321:5432"
     environment:
+      POSTGRES_HOST_AUTH_METHOD: trust
       POSTGRES_DB: openstreetmap
-    volumes:
-      - ./docker-db-data:/var/lib/postgresql/data
```

Except that it worked flawless

-- 
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/2409#issuecomment-626179863
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20200509/248461ec/attachment.htm>


More information about the rails-dev mailing list