Skip to content

Instantly share code, notes, and snippets.

sidekiq:
image: tootsuite/mastodon:latest
restart: always
env_file: /opt/mastodon/.env.production
environment:
- DB_POOL=16
command: bundle exec sidekiq -c 16 -q pull
depends_on:
- db
- redis
@y8
y8 / brew.sh
Last active May 22, 2024 07:58
culvert macOS 14.5 Sonoma (23F79)
brew install meson dtc swig
@y8
y8 / docker-compose.swarm.yml
Last active March 4, 2025 07:09
Mastodon v4.3+ patch to set custom char limit using `MAX_POST_CHARS` env variable
# Example how you can "patch" Matodon running in docker swarm by exploiting "config mounts"
# to avoid mounting files from local system
services:
web:
# original configuration
# ...
configs:
- source: mastodon-remove-char-limit
target: /mastodon/config/initializers/4_char_limit.rb