Skip to content

DockerFile + Docker-compose file to setup Ruby on Rails enviroment. Includes Sidekiq server, Redis, Postgres, Prometheus, Grafana, Elasticsearch, Kibana, Selenium Browser test setup, Postgres DB adminer

Notifications You must be signed in to change notification settings

MaximMonin/rails-docker

Repository files navigation

rails-docker

Ruby on Rails 6.x in Docker

DockerFile + Docker-compose file to setup Ruby on Rails enviroment.
Includes Sidekiq server, Redis, Postgres, Prometheus, Grafana, Elasticsearch, Kibana, Selenium Browser test setup, Postgres DB adminer

Installation

  1. Build rails Image. Use build.sh. You can use docker pull maximmonin/rails instead.
  2. Run prepare.sh to extract rails app directory from rails docker image to ./app
  3. Copy .env-example to .env and change to your site
  4. Start containters start.sh
  5. Postgres db will be created on first run.

Run run_tests.sh to run rails test
Run run_tests_system.sh to run system browser tests through selenium and rails-test container with rails-test db
Run run_webpack.sh to compile java scripts with webpack
Run run_precompile.sh to precompile assets for production use
Run run_shell.sh to enter inside container
Run run_elastic_indexes.sh to recreate all model's search indexes and import data to elasticsearch

About

DockerFile + Docker-compose file to setup Ruby on Rails enviroment. Includes Sidekiq server, Redis, Postgres, Prometheus, Grafana, Elasticsearch, Kibana, Selenium Browser test setup, Postgres DB adminer

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published