try different Health settings
This commit is contained in:
parent
7405c6adea
commit
d25b699e27
10 changed files with 52 additions and 27 deletions
|
|
@ -9,10 +9,14 @@ ContainerName=mastodon-streaming
|
|||
EnvironmentFile=/etc/containers/systemd/mastodon/.env.secrets
|
||||
EnvironmentFile=/etc/containers/systemd/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=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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue