[openstreetmap/openstreetmap-website] [WIP] Add docker support (#2272)

robbyoconnor notifications at github.com
Sun Jul 21 23:42:39 UTC 2019


robbyoconnor commented on this pull request.



> @@ -0,0 +1,25 @@
+version: '2'
+services:
+  web:
+    image: openstreetmap-website:v1
+    build:
+      context: ..

Why not put the Dockerfiles in this directory?

> +    build:
+      context: ..
+      dockerfile: docker/Dockerfile
+    volumes:
+      - ..:/app
+    ports:
+      - "3000:3000"
+    command: bundle exec rails s -p 3000 -b '0.0.0.0'
+    depends_on:
+      - db
+    environment:
+      DATABASE_URL: postgres://postgres@db:5432
+  db:
+    image: openstreetmap-db:v1
+    build:
+      context: ..

Same here as above?

-- 
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/2272#pullrequestreview-264560673
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20190721/f0a4611e/attachment.html>


More information about the rails-dev mailing list