nickjj / docker-rails-example

A production ready example Rails app that's using Docker and Docker Compose.
MIT License
942 stars 185 forks source link

MySQL Example #43

Closed deanpcmad closed 2 years ago

deanpcmad commented 2 years ago

Is it possible to have a MySQL example too as well as Postgres?

nickjj commented 2 years ago

Hi,

Nope sorry, but the good news is nothing changes at the app level.

You can update the docker-compose.yml file to swap postgres for mysql and then update the .env file to replace the postgres related env vars with mysql. Those env vars are referenced in the config/database.yml file too.