synth.download/beeper/etc/containers/systemd/mastodon/mastodon-sidekiq.container

26 lines
685 B
Text
Raw Normal View History

2025-12-30 00:54:29 +07:00
[Unit]
Description=Mastodon Sidekiq Service
BindsTo=postgresql.service mastodon-dfdb.service
2025-12-30 00:54:29 +07:00
After=postgresql.service mastodon-dfdb.service
[Container]
Image=ghcr.io/synth-download/mastodon:nightly
ContainerName=mastodon-sidekiq
2026-01-02 04:38:40 +07:00
EnvironmentFile=/etc/containers/systemd/mastodon/.env.secrets
EnvironmentFile=/etc/containers/systemd/mastodon/.env
2025-12-30 00:54:29 +07:00
Exec=bundle exec sidekiq
Network=mastodon.network
Network=postgresql.network
Volume=/var/containers/mastodon/public/system:/mastodon/public/system:z
2026-01-11 10:07:38 +07:00
# Health
HealthCmd=ps aux | grep '[s]idekiq\ 8' || false
HealthOnFailure=kill
HealthStartPeriod=1m
Notify=healthy
2025-12-30 00:54:29 +07:00
[Service]
Restart=always
RestartSec=10s
[Install]
WantedBy=default.target