// the find
ledermann/docker-rails
Dockerize Rails 7 with ActionCable, Webpacker, Stimulus, Elasticsearch, Sidekiq
A reference Rails 7 app showing how to package a realistic multi-service stack into Docker for production. It's not a framework or library — it's a worked example you read and steal from, covering Sidekiq, ActionCable, OpenSearch, S3 uploads, and background jobs in a single coherent codebase.
The multi-stage Dockerfile targeting Alpine is genuinely lean — ~80MB final image is achievable when you're careful about not copying node_modules and dev tooling into the production layer. The docker-compose.production.yml models the full stack (app, worker, db, opensearch, redis, backup) as separate services, which is the right mental model for anything beyond a toy. Automated DB backup to S3 as a sidecar container is a practical pattern most tutorials skip entirely. CI that builds and pushes the production image on green tests means the image in the registry is always deployable.
The last commit was October 2024 and it's still on Webpacker/Webpack — Rails has shipped Importmap and Propshaft since then, and Webpacker is officially dead. Anyone using this as a starting point will inherit a deprecated JS pipeline they'll need to rip out. The README still advertises it as Rails 7.0 but the ecosystem has moved to 7.1 and 7.2 with meaningful changes to the asset pipeline and encryption defaults. The app uses Clearance for auth at a time when Rails ships Devise-compatible authentication generators natively in 7.1+, adding an unnecessary dependency. No secrets management story in the Docker setup beyond environment variables passed directly — no demonstration of how to pull from Vault or AWS Secrets Manager in a real production deploy.