{"repo":"nickjj/docker-rails-example","free":true,"listed":false,"github":"https://github.com/nickjj/docker-rails-example","clone":"git clone https://github.com/nickjj/docker-rails-example.git","description":"A production ready example Rails app that's using Docker and Docker Compose.","language":"Ruby","stars":1078,"topics":["rails","postgres","redis","stimulus","docker","docker-compose","esbuild","hotwire","tailwindcss"],"license":"MIT","category":"deployment-docker-iac","readme_excerpt":"🐳 An example Rails + Docker app You could use this example app as a base for your new project or as a guide to Dockerize your existing Rails app. The example app is minimal but it wires up a number of things you might use in a real world Rails app, but at the same time it's not loaded up with a million personal opinions. For the Docker bits, everything included is an accumulation of Docker best practices based on building and deploying dozens of assorted Dockerized web apps since late 2014. This app is using Rails 8.1.3.1 and Ruby 4.0.6 . The screenshot shows X.X.X since they get updated regularly: 🧾 Table of contents - Tech stack - Main changes vs a newly generated Rails app - Running this app - Files of interest - .env - run - Running a script to automate renaming the project - Updating dependencies - See a way to improve something? - Additional resources - Learn more about Docker and Ruby on Rails - Deploy to production - About the author 🧬 Tech stack If you don't like some of these choices that's no problem, you can swap them out for something else on your own. Back-end - PostgreSQL - Redis - Sidekiq - Action Cable - ERB Front-end - esbuild - Hotwire Turbo - StimulusJS - TailwindCSS - Heroicons 🍣 Notable opinions and packages Here's a run down on what's different. You can also use this as a guide to Dockerize an existing Rails app. - Core : - Use PostgreSQL ( -d postgresql) as the primary SQL database - Use Redis as the cache back-end - Use Sidekiq as a background wor","default_branch":null,"files":null,"tree":[],"storefront":"/r/nickjj","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/nickjj/docker-rails-example/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}