Skip to content
Working Rails 6 with PostgreSQL on Docker Example
Ruby HTML JavaScript CSS Dockerfile Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
bin
config
db
lib
log
public
spec
storage
tmp
vendor
.browserslistrc
.dockerignore
.env.docker
.gitignore
.rspec
.ruby-version
Dockerfile
Gemfile
Gemfile.lock
README.md
Rakefile
babel.config.js
config.ru
docker-compose.yml
entrypoint.sh
package.json
postcss.config.js
yarn.lock

README.md

Rails 6 on Docker working example

This app demonstrates Rails 6 with PostgreSQL and Webpacker, all running in Docker.

Initial setup

$ docker-compose build
$ docker-compose run --rm web bundle exec rails db:setup

Running server locally

$ docker-compose up

Running tests

$ docker-compose run --rm web bundle exec rspec

Updating gems

$ docker-compose run --rm web bundle install
$ docker-compose up --build

Updating Yarn packages

$ docker-compose run --rm web yarn upgrade
$ docker-compose up --build

Credits/References

For Webpack dev server:

For Bootstrap

You can’t perform that action at this time.