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

26 lines
721 B
Text

[Unit]
Description=Mastodon Streaming Service
Requires=postgresql.service mastodon-dfdb.service
After=postgresql.service mastodon-dfdb.service
[Container]
Image=ghcr.io/synth-download/mastodon-streaming:nightly
ContainerName=mastodon-streaming
EnvironmentFile=/etc/containers/systemd/mastodon/.env.secrets
EnvironmentFile=/etc/containers/systemd/mastodon/.env
Exec=node ./streaming/index.js
Network=mastodon.network
Network=postgresql.network
PublishPort=127.0.0.1:58834:4000
# Health
HealthCmd=curl -s --noproxy localhost localhost:4000/api/v1/streaming/health | grep -q 'OK' || exit 1
HealthOnFailure=kill
HealthStartPeriod=1m
Notify=healthy
[Service]
Restart=always
RestartSec=10s
[Install]
WantedBy=default.target