2025-12-30 00:54:29 +07:00
|
|
|
[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
|
2025-12-31 02:41:25 +07:00
|
|
|
ContainerName=mastodon-streaming
|
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=node ./streaming/index.js
|
|
|
|
|
HealthCmd=curl -s --noproxy localhost localhost:4000/api/v1/streaming/health | grep -q 'OK' || exit 1
|
|
|
|
|
Network=mastodon.network
|
|
|
|
|
Network=postgresql.network
|
2025-12-31 02:41:25 +07:00
|
|
|
PublishPort=127.0.0.1:58834:4000
|
2025-12-30 00:54:29 +07:00
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
|
Restart=always
|
|
|
|
|
RestartSec=10s
|
|
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
|
WantedBy=default.target
|