thehashrocket / rails7-on-docker-mysql

Working Rails 7 demo application with mysql

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ruby

Rails 7 on Docker ** MYSQL ** demo application

This app demonstrates Rails 7 with Mysql8, import maps, turbo, stimulus and hotwire, all running in Docker.

Features

  • Mysql 8
  • Rails 7
  • Ruby 3
  • Dockerfile and Docker Compose configuration
  • MYSQL database
  • Redis
  • GitHub Actions for
  • Dependabot for automated updates

Running the Rails app

sh start.sh 

Running the Rails console

When the app is already running with docker-compose up, attach to the container:

docker-compose exec web bin/rails c

When no container running yet, start up a new one:

docker-compose run --rm web bin/rails c

Running tests

docker-compose run --rm web bin/rspec

Updating gems

docker-compose run --rm web bundle update
docker-compose up --build

Credits/References

Thanks!! to ryanwi for the postgres version. The conversion to MYSQL8 was pretty easy!!

https://github.com/ryanwi/rails7-on-docker

About

Working Rails 7 demo application with mysql


Languages

Language:Ruby 79.7%Language:HTML 12.5%Language:CSS 2.7%Language:Dockerfile 2.0%Language:JavaScript 2.0%Language:Shell 1.0%Language:Procfile 0.1%