Skip to content

Instantly share code, notes, and snippets.

@kstrauser
Created November 7, 2022 22:37
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 kstrauser/6ca247db82f9e1746f2281caf6ddb36b to your computer and use it in GitHub Desktop.
Save kstrauser/6ca247db82f9e1746f2281caf6ddb36b to your computer and use it in GitHub Desktop.
version: '3'
services:
[...]
sidekiq_1:
build: .
image: tootsuite/mastodon
restart: always
env_file: .env.production
command: bundle exec sidekiq -c 25
volumes:
- /var/www/mastodon/system:/mastodon/public/system
healthcheck:
test: ['CMD-SHELL', "ps aux | grep '[s]idekiq\ 6' || false"]
cpu_shares: 512
sidekiq_2:
build: .
image: tootsuite/mastodon
restart: always
env_file: .env.production
command: bundle exec sidekiq -c 25 -C /opt/mastodon/config/sidekiq-helper.yml
volumes:
- /var/www/mastodon/system:/mastodon/public/system
healthcheck:
test: ['CMD-SHELL', "ps aux | grep '[s]idekiq\ 6' || false"]
cpu_shares: 512
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment