Sign inSign up

5xcampus/ruby

By 5xcampus

•Updated over 5 years ago

Simple Ruby on Rails 6 development environment with docker

Image
2

303

5xcampus/ruby repository overview

Step 1: create a docker-compose.yml in any directory you want.

Step 2: copy the following content and paste into docker-compose.yml

version: '3.8'

services:
  app:
    image: 5xcampus/ruby:rails6-dev
    container_name: rails6-dev
    stdin_open: true
    tty: true
    volumes:
      - .:/usr/src/app
      - ~/.ssh:/root/.ssh:ro
    ports:
      - 3000:3000
    networks:
      - happy_hacking
    command: /bin/zsh

networks:
  happy_hacking:

Step 3: run docker-compose run app command, and DONE!

Now you should have a Ruby on Rails (version 6.1.1) development environment.

Tag summary

Content type

Image

Digest

Size

265.7 MB

Last updated

over 5 years ago

docker pull 5xcampus/ruby:rails6-dev