3
4 Comments

Using Sqlite3 in local and MySQL in prod? Just do docker and get any database up in 5 minutes

https://medium.com/teamzerolabs/docker-101-what-is-docker-and-how-do-i-use-it-b12cef12eca?source=friends_link&sk=805dbf1ce53a076b6f683ecfd1f51393

on February 8, 2020
  1. 2

    Docker Compose is my go to for local dev environment. I can spin up Postgres, Redis, multiple services, etc in one command. And everything is isolated to the container so no local contamination.

    1. 1

      Yes it is wonderful! I plan to cover docker-compose next, but do need an example to make it complete. It's simple and easy to reason about!

  2. 1

    But it’s so memory intensive ☹️

    1. 1

      True that, I didn't dare use it too much with webstorm until I upgraded to the 16G mbp.
      I guess it's a compromise between usability/accessibility vs resource usage!

      Sqlite3 is still king for that context, it just makes some migrations less portable though.