The docker-compose.yml file contains a minimalistic example of a working SOGo stack. It consists of a PostgreSQL database container, along the actual SOGo container.
The database's data as well as SOGo's /srv
folder are persistent volume mounts.
Refer to to the README's Setup section for information how to configure SOGo with database credentials etc.