An open API service indexing awesome lists of open source software.

https://github.com/sub-xaero/docker-ruby-on-rails


https://github.com/sub-xaero/docker-ruby-on-rails

docker docker-compose docker-image puma rails5 ruby ruby-on-rails rubyonrails

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

          

# Quickstart

The docker-compose file mounts a volume called `/app` which is where the server will be sourced from.

There are also cache volumes mounted for the PostGRES data directory and the bundle install directory, so that you don't have to wait for bundles to install every `compose up`. To bust the cache, simply run `docker-compose down -v` to destroy the volumes, and then `docker-compose up` as usual.

The docker-start.sh file runs a `yarn install`, `bundle check || bundle install` to check if any gems are missing and if so, install them. Kills any artifacts blocking the server from running if the container is shutdown forcibly, and binds the server to port `3000` along with some self-signed SSL certificates, to comply with the new Chrome forced HTTPS protocol. This fixes the `ERR_SSL_PROTOCOL` white screen in Chrome when trying to use `rails server` or `rails s`, and the Puma Error in the rails logs: `HTTP parse error, malformed request (): #