Public | Automated Build

Last pushed: 2 years ago
Short Description
Rails development image
Full Description

Supported tags

  • latest, 4.2.6

How to use this image

Create a Rails project

docker run -it --rm -v $(pwd):/app defmsy/rails rails new .

Run Rails project

docker run -it --rm -v $(pwd):/app -p 3000 defmsy/rails

How to use with docker-compose

docker-compose.yml

version: '2'
services:
  web:
    image: defmsy/rails:latest
    volumes:
      - .:/app
    ports:
      - "3000:3000"
    depends_on:
      - db
  db:
    image: postgres
    ports:
      - "5432:5432"

This docker-compose.yml file creates two containers. The web container that runs Rails and the db container that runs Postgresql.

Docker Pull Command
Owner
defmsy
Source Repository