- Ruby 3.1.1
- Rails 7.0.2
Will be necessary create a file called .env
with the env variables
MYSQL_USER=<value>
MYSQL_PASSWORD=<value>
JWT_SECRET_KEY=<value>
- Build containers
docker compose build
- DB creation
docker exec -it <container_ref> rails db:create
- DB migrations dev environment
docker exec -it <container_ref> rails db:migrate RAILS_ENV=development
- Run containers
docker compose up
- Install ruby (recommend to use a ruby version manager like RVM)
- Inside Rails project run the command below to install the project gems
bundle install