https://github.com/nshki/dockerized-rails
An opinionated Dockerized Rails application template.
https://github.com/nshki/dockerized-rails
docker docker-compose rails rails-template
Last synced: over 1 year ago
JSON representation
An opinionated Dockerized Rails application template.
- Host: GitHub
- URL: https://github.com/nshki/dockerized-rails
- Owner: nshki
- Created: 2022-08-05T06:36:45.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-04-22T05:55:51.000Z (about 3 years ago)
- Last Synced: 2024-10-10T02:40:55.352Z (over 1 year ago)
- Topics: docker, docker-compose, rails, rails-template
- Language: Ruby
- Homepage:
- Size: 33.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Dockerized Rails Template
This is a [Rails application template](https://guides.rubyonrails.org/rails_application_templates.html) for an opinionated Docker setup.
- Docker Compose-optimized project
- App, Postgres, Redis, and Selenium services
- Sidekiq worker runs via Foreman to prevent `bin/dev` or `Procfile.dev` clashes with gems you might add later
- Binstubs that make working with Docker Compose easy
- `bin/compose`: Alias for `docker-compose up`
- `bin/run`: Runs a command in the `app` service
- `bin/credentials`: Opens the encrypted credentials file in Vim
- Additional default gems
- [annotate](https://github.com/ctran/annotate_models): Model annotations
- [chusaku](https://github.com/nshki/chusaku): Controller annotations
- [mocktail](https://github.com/testdouble/mocktail): Easier mocking in tests
- [sidekiq](https://github.com/mperham/sidekiq): Background processing
- [simplecov](https://github.com/simplecov-ruby/simplecov): Test suite code coverage
- [standard](https://github.com/testdouble/standard): Style guide, linter, and fixer
- GitHub Action workflow that runs linting, annotations, and test suite
## Setup
```
$ rails new my_new_project --template=https://raw.githubusercontent.com/nshki/dockerized-rails/main/dockerized-rails-template.rb --database=postgresql --skip-bundle
```