Skip to content

Pobb/docker-rails

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Create rails app using docker

Sample files (Dockerfile, docker-compose.yml, run.sh) to easily create new rails app. Kiss.

Prerequisites

  • Docker
  • Docker-compose
  • Internet connection (download docker's images take time ..)

5 steps

  1. Clone this project : it contains 3 files
  2. docker-compose build
  3. docker-compose run web rails new . --force --no-deps --database=postgresql --no-documentation
  4. Edit config/database.yml and add :
  • host: db
  • username: "postgres"
  • password: "postgres"
  1. docker-compose up

Visit http://localhost:4000 and you are done !

About

Simple use of docker to create rails app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published