Sign inSign up

sfoxdev/ruby

By sfoxdev

Updated about 9 years ago

Ruby 2.3.1 + Postgres 9.6.5

Image
0

1.0K

sfoxdev/ruby repository overview

Ruby

Ruby 2.3.1 + Sidekiq + Postgres 9.6.5 + Redis 4.0.1 + Elasticsearch 5.5.2 + Kibana 5.5.2

Docker Build Status Docker Build Status Docker Build Status Docker Build Status

Usage

Start container

docker-compose up -d

Stop container

docker-compose down

Make container with app from scratch

  1. Create folder app and put here two files Gemfile and empty Gemfile.lock

  2. Inial build

docker-compose up -d --build && docker-compose down
  1. Create new app
docker-compose run --rm app rails new . --force --database=postgresql
  1. Build container
docker-compose build
  1. Edit app/config/database.yml file to setup your database
default: &default
  adapter: postgresql
  encoding: unicode
  host: db
  username: railsapp
  password: railsapp
  pool: 5

development:
  <<: *default
  database: myapp_development

test:
  <<: *default
  database: myapp_test
  1. Run container
docker-compose up -d
  1. Create DB
docker-compose run --rm app rake db:create

Tag summary

Content type

Image

Digest

Size

233.9 MB

Last updated

about 9 years ago

docker pull sfoxdev/ruby