If use the official postgres image:
https://hub.docker.com/_/postgres/
is a simple way to use PostgreSQL database.
But if I need to use some PostgreSQL extention such as pgroonga:
How to add this to that official PostgreSQL image?
Run that image as a container, then sign in to it add extention, finally make a new image? Is it possible?
If there exists a official pgroonga image will be good, but there isn't now:
https://hub.docker.com/u/groonga/
The last way, make a image for groonga, the links to postgres container when run the full stack.
Which way is good to such a case when using container to deploy mordern web application?