{"repo":"luizkowalski/devcontainer-rails","free":true,"listed":false,"github":"https://github.com/luizkowalski/devcontainer-rails","clone":"git clone https://github.com/luizkowalski/devcontainer-rails.git","description":"💎 devcontainer configurations to run Ruby on Rails with PostgreSQL and Redis on GitHub Codespaces (or locally)","language":"Dockerfile","stars":91,"topics":["codespace","codespaces-friendly","rails","ruby","ruby-on-rails","postgresql","redis","vscode","valkey"],"license":null,"category":"databases-storage","readme_excerpt":"Codespace on Rails Why? I've been trying to get some Ruby on Rails projects I have set up on Codespaces. After many tries, I've finally got it working (at least the way I wanted it to), so now I'm creating this repository to keep these changes and copy them to other projects whenever needed. I mostly copied what was done here and fixed some things that were not working for me or that I didn't need. How? 1. Copy the .devcontainer folder to your project 2. Copy .env.example to .env and customize environment variables 3. Customize the files to your needs 4. Open the project in Codespaces What's in the box? - Ruby 4.0.1 - PostgreSQL 18 (exposed locally on port 5433) - Valkey 8 (Redis-compatible, exposed locally on port 6379) - Node LTS - ZSH and Oh My Zsh - Mise version manager - Non root user Security & Performance Features This configuration includes several security and performance improvements: Security - Environment-based credentials : Database and Redis passwords use environment variables - Valkey authentication : Password protection enabled by default - Pinned versions : All Docker images and features use specific versions - Non-root user : Runs as vscode user for better security Performance & Reliability - Service dependencies : App waits for database and Redis to be healthy before starting - Health checks : Robust health monitoring with proper startup periods - Resource limits : Memory limits prevent resource exhaustion (PostgreSQL: 512M, Valkey: 128M) - Optimized volume","default_branch":null,"files":null,"tree":[],"storefront":"/r/luizkowalski","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/luizkowalski/devcontainer-rails/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."}