Skip to content

Air-Craft/docker-rails5-postgres-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Instructions

Clone the repo, then run the following setup...

docker-compose build
docker-composer run web bundle install
(docker composer run web bundle update) # sometimes required to sort out dependency issues
docker-compose run web bundle exec rails db:setup

To launch the db & server

docker-compose up

To break down

docker-compose doan

Gems are volume mounted so no need to rebuild to bundle install. Just run

docker-composer run web bundle install

Note, they are NOT saved in the image itself. A seperate Dockerfile for production is required which should include the bundle install (and db:setup?) commands, as well as as COPY command to copy in the source code to the WORKDIR

About

A docker setup for fresh rails 5 development (with postgres)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published