Skip to content

simonireilly/docker-rails

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rails docker implementation

  • Rails 5.2.0
  • Postgres

To get started:

  1. Clone this repo into a new named folder
  2. Open the folder and run docker-compose run web rails new . --force --database=postgresql
  3. On linux run sudo chown -R $USER:$USER .
  4. Change database.yml localhost to:
default: &default
  adapter: postgresql
  encoding: unicode
  host: db
  username: postgres
  pool: 5

development:
  <<: *default
  database: myapp_development


test:
  <<: *default
  database: myapp_test
  1. Build the containers docker-compose build
  2. Finally you need to create the database docker-compose run web rake db:create

About

Docker template for new Ruby on Rails app

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published