Running Rails 5.0.1 + PostGIS in development using docker-compose v2

In this post we will learn to:

Configure `docker-compose` for Rails 5 + PostGIS development

We will start by setting up the following for our development environment:

  1. Create a `Dockerfile`
  2. Create a `docker-compose.yml` file
  3. Create an `.env` file for environment variables
  4. Configure `database.yml`
  5. Update `Gemfile` with postgis adapter
APP_NAME=dockerized-rails

In the next post we will set up docker for production. Here’s the next part of the article:

The whole thing as a gist:

Ocean to disaster mapping and all things geo-temporal. https://burq.fun

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store