I'm designing a Rails webapp using Docker and for a variety of reasons, I'd like to use RDS in the Production environment for its configurability & durability purposes, rather than a Docker container-based DB (this is a requirement).
I realize that I can configure database.yml to point to my RDS instance for Prod env, and to some local DB instance in my local dev env.
However, I'm confused as to whether to use a container-based DB in my local dev environment, or an external one like MySQL Server.
Based on the Docker pattern of env-agnostic containers, I suppose that having a container-based DB in only some envs wouldn't make any sense (in fact, I don't think docker-compose.yml
would even support something like this), so I am assuming I'll need to go with the MySQL Server solution for my local dev env.
Has anybody else been through such a requirement? Let me know if I am thinking about this the right way. Also, would this pose any potential issues for DB migration scripts?
Any suggestions are welcome!
Thank you.