A base setup to kickstart a rails app with postgres through docker. The app is not created already, rather this is a ready-to-go set of files to install a new rails app with docker. See the docker docs for coverage on how this is crafted: https://docs.docker.com/compose/rails/.
Run the following to create a new "app":
wget https://raw.githubusercontent.com/kevin-k/rails-docker-init/v0.1.0-preview/install.sh
chmod +x install.sh
./install.sh app
With that you've pulled down this base setup, and ran the initialization process for a rails app with postgres!
Bring your app online with:
cd app
docker-compose up
There are plenty of ready-to-go base rails app repos with docker images out there, but as time goes on images become outdated. This tool is for those who want a bare docker rails installation, in a point-and-click manner.
This installer self-destructs, you are left with your own app in a new repo once complete.
- Postgres: 13
- Ruby: 2.7
- Rails: 6
Always looking for collaborators! Current list of feature requests:
- Configurable database installation strategy.
- Add argument-driven support to install.sh for mysql.
- Add argument-driven support to install.sh for sqlite3.
- Configurable webpacker framework selection.
- Add argument-driven support for selecting a framework for webpacker (react, vue, angular, elm, stimulus)
- Configurable cache installation strategy.
- Add argument-driven support to install.sh for including redis (add redis in compose & gem installation/config). see docs.