Hosting your own mastodon instance via docker-compose

Recently I’ve setup an invite-only mastodon instance as a private space for friends and family. While I am still evaluating whether mastodon is the right tool for such a private space, I’d like to share a number of issues I encountered during setup.