Skip to content

Dockerized Ruby on Rails 5 with Puma, PostgreSQL and pgAdmin

Notifications You must be signed in to change notification settings

artttj/dockerized-ruby-on-rails

Repository files navigation

README

Rails info

Rails version: 5.2.3

Ruby version: 2.5.5 (x86_64-linux)

Getting started

Install Docker: https://docs.docker.com/compose/install/

Build images and run application:

docker-compose up -d

Wait for a few seconds until the server starts.

Create database:

docker-compose run web rake db:create

Open http://localhost:3000 in your browser.

Migrations

Example migration, create users table:

docker-compose run web bin/rails generate migration CreateUsers

docker-compose run web rake db:migrate

pgAdmin

Open http://localhost:5050

[email protected]

admin


Quick Links -> Add New Server

host: db

port: 5432

database: app_development

username: postgres

password:

About

Dockerized Ruby on Rails 5 with Puma, PostgreSQL and pgAdmin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published