Skip to content

xanthopoulakis/rails-on-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Rails On Docker

An intoduction to creating and running a Ruby on Rails service API on Docker. For a more comprehensive tutorial, feel free to take a look at the Docker docs.

Prerequisites

If you are using Docker Machine, then docker-machine ip MACHINE_VM returns the Docker host IP address, to which you can append the port (:3000)

Getting Started

Open the command line console in your machine (or use Git Bash) and follow the steps below Checkout:

$ git clone [email protected]:xanthopoulakis/rails-on-docker.git

enter the folder

$ cd rails-on-docker

create the project

$ docker-compose run rails-service rails new . --api -T

build the project

$ docker-compose build rails-service

run the project

$ docker-compose up rails-service

run the rails console

$ docker-compose run rails-service rails c

About

An intoduction to rails as a docker service

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published