Im learning Docker
and for test purposes Im running a Django
App in it. Everything is OK and running. But now i want to use database(Postgres
) in my containerised architecture.
As we know, If a container stops, All data will be reseted and because of that I can't put my database in container, Right? Im confused about this.
Should I run database server outside of container? Then how App inside container should talk with that? Or I have to run database service in the container and read database dump files from external source?
Im confused about architecture! Containers are just for Apps and codes no just database servers? Or I can use database inside the container? I love containers idea and i want to do my project as a package that runs everywhere... But when im using database server, is this possible?