Skip to content

james-ransom/rails7-on-docker-mysql

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

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