Skip to content

soulmates-ai/docker-rails-demo

Repository files navigation

Welcome to Docker Rails Demo

Rails, Docker and Webpacker is an awesome combination, for instance to develop React/Rails apps with. This demo app uses Rails 5, Webpacker and Docker. In development mode, it uses webpack-dev-server for live Javascript reloading. As database it uses PostgreSQL.

First, build the app for development

docker-compose build

Create the database

docker-compose run web scripts/wait-for-it.sh db:5432 -- "rake db:create db:migrate"

Run the app in development mode

docker-compose up

Build the app for production

docker build -t docker-rails-demo .

Now open http://localhost:3000 and look at your Javascript console to see messages

Brought to you by Soulmates.ai

Released under the MIT License