It might be worth reading through The Twelve-Factor App if you are just getting started. It is a short post about lessons learned regarding designing applications for containers that actually helped inspire the original Docker development.
https://12factor.net/
We also cover this and other recommendations in some detail in
Docker: Up and Running.