Skip to content

Instantly share code, notes, and snippets.

@y8
Created July 24, 2023 22:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save y8/9707988784aa62c9d112fcd9814719fc to your computer and use it in GitHub Desktop.
Save y8/9707988784aa62c9d112fcd9814719fc to your computer and use it in GitHub Desktop.
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
networks:
- external_network
- internal_network
volumes:
- /opt/mastodon/web/public/system:/mastodon/public/system
healthcheck:
test: ['CMD-SHELL', "ps aux | grep '[s]idekiq\ 6' || false"]
sidekiq-ingress:
image: tootsuite/mastodon:latest
restart: always
env_file: /opt/mastodon/.env.production
environment:
- DB_POOL=24
command: bundle exec sidekiq -c 24 -q default -q ingress -q scheduler -q mailers -q push
depends_on:
- db
- redis
networks:
- external_network
- internal_network
volumes:
- /opt/mastodon/web/public/system:/mastodon/public/system
healthcheck:
test: ['CMD-SHELL', "ps aux | grep '[s]idekiq\ 6' || false"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment