Mastodon Integration

Mastodon can be run from a docker image.

I wonder if someone here has set up Mastodon so it reuses the data and redis images from Discourse docker, or how to do it.

I wish we document it, since there’s no reason why running Mastodon from Docker would create extra instances for services that already come with Discourse. Therefore this post is set to evolve and integrate the step-by-step modifications to Mastodon install so that it can co-exist with an existing Discourse multisites install with separate containers for PostgreSQL and Redis.

Then it can also include extra documentation, such as:

  • adding a user field for the local Mastodon instance
  • integrating the local Mastodon instance feeds into a dedicated Discourse category, with a topic for each user feed (I see the autobot plugin may do that, but I’d rather use an ATOM/RSS specific plugin for that. Should we think about a dedicated Mastodon plugin?)
  • post from Discourse to Mastodon.
3개의 좋아요

If you are running Mastodon using docker-compose, you can run Discourse using the web_only template and point to the existing redis and pg containers.

My situation is exactly inverse: I have a Discourse running, and want to install a Mastodon instance without relying on Mastodon’s db and redis images since I already have them with Discourse.

EDIT: maybe you’re right, since Mastodon docker images use Alpine, they may be lighter.

개발자가 아닌 사람이 할 수 있는 방법이 전혀 없는 건가요? 저는 마스토ドン에서 우리 테마와 댓글을 공유하고 싶습니다.

여기서 논의하신 주제와 같은 건가요, 아니면 제가 잘못 이해한 건가요?