{"repo":"ryanwi/rails7-on-docker","free":true,"listed":false,"github":"https://github.com/ryanwi/rails7-on-docker","clone":"git clone https://github.com/ryanwi/rails7-on-docker.git","description":"Working Rails 7 demo application running in Docker. No node.js or webpack required.","language":"Ruby","stars":288,"topics":["rails","docker","github-actions"],"license":null,"category":"deployment-docker-iac","readme_excerpt":"Start here: https://github.com/ryanwi/rails7-on-docker/generate Rails 7 on Docker demo application This app demonstrates Rails 7 with PostgreSQL, import maps, turbo, stimulus and hotwire, all running in Docker. NOTE: There are also examples Rails 8 and Rails 6 applications working in Docker Rails 8 Applicaiton Docker Template Rails 7 Applicaiton Docker Template Rails 6 Application Docker Template Features Rails 7 Ruby 3.3 Dockerfile and Docker Compose configuration PostgreSQL database Redis GitHub Actions for tests Rubocop for linting Security checks with Brakeman and bundler-audit Building and testing of a production Docker image Dependabot for automated updates Requirements Please ensure you are using Docker Compose V2. This project relies on the docker compose command, not the previous docker-compose standalone program. https://docs.docker.com/compose/#compose-v2-and-the-new-docker-compose-command Check your docker compose version with: Initial setup Running the Rails app Running the Rails console When the app is already running with docker-compose up, attach to the container: When no container running yet, start up a new one: Running tests Updating gems Production build (adjust tags as needed) with BuildKit Test the image can be used and Rails starts up, use a fake key for testing purposes only: With legacy builder (no BuildKit) Test the image can be used and Rails starts up, use a fake key for testing purposes only: Deployment This app can be hosted wherever Ruby is supp","default_branch":null,"files":null,"tree":[],"storefront":"/r/ryanwi","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ryanwi/rails7-on-docker/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."}