[Unit] Description=Mastodon Sidekiq Service BindsTo=postgresql.service mastodon-dfdb.service After=postgresql.service mastodon-dfdb.service [Container] Image=ghcr.io/synth-download/mastodon:nightly ContainerName=mastodon-sidekiq EnvironmentFile=/etc/containers/systemd/mastodon/.env.secrets EnvironmentFile=/etc/containers/systemd/mastodon/.env Exec=bundle exec sidekiq Network=mastodon.network Network=postgresql.network Volume=/var/containers/mastodon/public/system:/mastodon/public/system:z # Health HealthCmd=ps aux | grep '[s]idekiq\ 8' || false HealthOnFailure=kill HealthStartPeriod=1m Notify=healthy # Security NoNewPrivileges=true # Resources PodmanArgs=--cpu-shares=2048 [Service] Restart=always RestartSec=10s [Install] WantedBy=default.target