I am looking for a pretty simple answer, hopefully. There are a LOT of answers when I Google, but nothing seems to do what I want.
I have a compose file that starts postgres and wildfly as services and they connect on a common network, all good. What I cannot get to work, is a “datafile” that survives docker restarts, and I mean that I “rmi mypostgresimage” and data all go by-by. I am on Windows for development, but production will be on Unix.
I plan on creating the tables as part of my image, then removing the schema scripts and saving as a new image for production. But I want to then load data to test with, and the data still exist after I restart docker, OR, even update my postgres version. So IAW, I want to be able to point a “postgres:latest” at my “volume” and then wildfly can read/maintain data in it. And hopefully, very similiar configuration whether I am in my Windows development environment, or on Unix production environment.
Thanks in advance.