# rails-docker-example
A project using Docker to create an environment for development with Ruby on Rails.

To run the project, there are two methods. There is the Docker-only solution, and there is [Docker Compose](https://docs.docker.com/compose/).

# Docker
1. Install [Docker](https://docs.docker.com/engine/installation/)
2. Run the postgres image: `docker run -d postgres` (This will download the image if necessary)
3. Build the rails-docker container: `docker build -t rails-docker .`
4. Run `sh run_docker.sh`
5. Done!

# Docker Compose
1. Simply run `docker-compose up -d`
2. Run `docker-compose run web` to start an interactive shell
3. Run `docker-compose down` to stop and remove the containers

# rails-docker-example
A project using Docker to create an environment for development with Ruby on Rails.

To run the project, there are two methods. There is the Docker-only solution, and there is [Docker Compose](https://docs.docker.com/compose/).

# Docker
1. Install [Docker](https://docs.docker.com/engine/installation/)
2. Run the postgres image: `docker run -d postgres` (This will download the image if necessary)
3. Build the rails-docker container: `docker build -t rails-docker .`
4. Run `sh run_docker.sh`
5. Done!

# Docker Compose
1. Simply run `docker-compose up -d`
2. Run `docker-compose run web` to start an interactive shell
3. Run `docker-compose down` to stop and remove the containers

Also read: [Getting Started with Rails 5.x on Heroku](https://devcenter.heroku.com/articles/getting-started-with-rails5)

Add link to Heroku Rails tutorial
Add link to Heroku Rails tutorial
