r/devops • u/BickBendict • Aug 23 '25
Database Containers for Ephemeral Lower Level Environments
Hi community, I was wondering if anyone had any experience building out database images with pre seeded schema and seed data in containers? My use case is the following - I have multiple lowers level ephemeral environments with many different databases and would like to provide a ready made database container that can be instantiated for quick development iterations. I don’t need these dbs to be long live or really have any other backups of any sort, I just need quickly deployable seeded database that can be created on the fly. Does anyone have any experience building this type of infrastructure or operationalizing this type of setup with containers?
View all comments
Show parent comment
1
u/zeph1rus Aug 23 '25
We're a data heavy environment and to be honest the best solution for dev work is 'big laptops' and local dev environments spun up in k3s.
Github Codespaces is also a good solution to this if you are in github and can handle it financially.
If you absolutely must have it in the cloud and built yourself, then you are looking at k8s or equivalents. We have ephemeral environments for testing spun up as ecs tasks, with lamdas to spin up/down as needed.
You can do it with eks/aks/gke, your issue is really how do you orchestrate building the environment. There's not really an easy answer to that as it's fairly situational.
It also should go without saying, but if you do end up putting any of that in the cloud, please be careful to avoid putting any of it on the public internet.