Here is a simple example for Seafile hosted with Docker in a Compose stack.
For your database network I create it as an --internal network: docker network create --internal your-name-here
Note: Update your email address, volume locations, and password fields
services:
seafile-db:
image: mariadb:10.11