isbitcoinup is a simple rails application that showcase how to use Docker in
a development environment. It is consist of several services including postgres,
sidekiq and redis. It's a good example on how to connect multiple services via
docker-compose
.
- Install Docker for your OS first. Click here for specific instructions.
- Clone the repo
- Run
docker-compose run --rm web rails rails db:create db:migrate
for setting up the database - Run
docker-compose up
to run the whole app.
- If you're gonna run commands like
rails g migration CreateTable
. You need to prefix it withdocker-compose run --rm web
. web is our service for our rails app. So the final command will bedocker-compose run --rm web rails g migration CreateTable
.