How do I launch multiple instances of a Docker container, but each one with diferent environment variables?

Say I have a REST api container that takes some environment variables for connecting to a database in RDS. I need to create 5 IDENTICAL rest apis, but each one connected to a diferent db and with different environment variables. How do I do that?

submitted by /u/phi_array
[link] [comments]
Source: Reddit