Sample files (Dockerfile, docker-compose.yml, run.sh) to easily create new rails app. Kiss.
- Docker
- Docker-compose
- Internet connection (download docker's images take time ..)
- Clone this project : it contains 3 files
- docker-compose build
- docker-compose run web rails new . --force --no-deps --database=postgresql --no-documentation
- Edit config/database.yml and add :
- host: db
- username: "postgres"
- password: "postgres"
- docker-compose up
Visit http://localhost:4000 and you are done !