Docker deployment with postgres or sqlite database - docker compose file example

In the documentation at:

it’s written that:

With the image provided, ownCloud has added database connectors for the following databases:

  • MySQL / MariaDB

  • Postgres

  • SQLite

But there is no further explanation how to use PostgreSQL or SQLite.
I would be very much helped by docker compose file examples as starting point for my setup with either SQLite or PostgreSQL.

When I google it I only seem to find old stuff about for example Owncloud 7 and for example this from 2015:

Is there anyone that can point me towards resources?