Uses Docker Compose, Postgres, etc.
This is a modification of this article: https://docs.docker.com/compose/rails/
Set up the docker file, gemfile, etc. Don't forget to modify your your config/database.yml (see below)
Change your environment.rb file to allow the web console to be rendered for the guest os.
e.g.: config.web_console.whitelisted_ips = '172.18.0.0/16'
General operation...
- Run
docker-compose up - First time, open a new tab and run
docker-compose run web rake db:setup - Use
docker-compose run web bashto connect and do useful stuff (e.g. rails console) - Use
docker-compose downto gracefully shut things down. If not, you might have todocker-compose run web rm /myapp/tmp/pids/server.pid