A Dockerized Ruby on Rails application boilerplate for development and production.
- Docker - Engine for building/containerizing applications
- Docker Compose - Container orchestration tool
These instructions will walk you through the process of setting up this project on a development machine.
- Docker
- Docker Compose
- Git
-
Clone the project (replacing
<my-project>
with the desired project name), delete.git
directory, and reinitialize git.git clone --depth=1 [email protected]:bryborge/rails-starter.git <my-project> \ && cd $_ \ && rm -rf .git
-
Drop into a shell on a temporary docker container based on the Ruby image version specified in
docker/Dockerfile
.make init
-
We're now ready to spin it all up.
make up
-
In a browser, navigate to
localhost:<HOST_APP_PORT>
, where<HOST_APP_PORT>
is the port number specified in your.env
file (defaults to3000
).
This project is licensed under the MIT License - see the LICENSE file for details.