21 lines
609 B
Text
21 lines
609 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
|
||
|
|
EnvironmentFile=/var/containers/mastodon/.env.secrets
|
||
|
|
EnvironmentFile=/var/containers/mastodon/.env
|
||
|
|
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
|
||
|
|
PublishPort=192.168.1.73:58834:4000
|
||
|
|
|
||
|
|
[Service]
|
||
|
|
Restart=always
|
||
|
|
RestartSec=10s
|
||
|
|
|
||
|
|
[Install]
|
||
|
|
WantedBy=default.target
|