use BindsTo for service that depend on psql or redis

This commit is contained in:
zenfyr 2026-01-11 10:36:30 +07:00
commit 5655401311
Signed by: melontini
SSH key fingerprint: SHA256:TtcIcnTnoAB5mqHofsaOxIgiMzfVBxej1AXT7DQdrTE
16 changed files with 16 additions and 16 deletions

View file

@ -1,7 +1,7 @@
[Unit]
Description=Ask.JS
After=postgresql.service
Requires=postgresql.service
BindsTo=postgresql.service
[Container]
Image=ghcr.io/ihateblueb/ask-js:dev

View file

@ -1,6 +1,6 @@
[Unit]
Description=ejabberd
Requires=postgresql.service
BindsTo=postgresql.service
After=postgresql.service
[Container]

View file

@ -1,7 +1,7 @@
[Unit]
Description=Forgejo
After=postgresql.service
Requires=postgresql.service
BindsTo=postgresql.service
[Container]
Image=codeberg.org/forgejo/forgejo:13

View file

@ -1,6 +1,6 @@
[Unit]
Description=FreshRSS
Requires=postgresql.service
BindsTo=postgresql.service
After=postgresql.service
[Container]

View file

@ -1,6 +1,6 @@
[Unit]
Description=Iceshrimp.NET
Requires=postgresql.service
BindsTo=postgresql.service
After=postgresql.service
[Container]

View file

@ -26,7 +26,7 @@ HealthStartPeriod=1m
Notify=healthy
[Service]
Restart=on-success
Restart=always
[Install]
WantedBy=default.target

View file

@ -1,6 +1,6 @@
[Unit]
Description=Mastodon Ingress Service
Requires=postgresql.service mastodon-dfdb.service
BindsTo=postgresql.service mastodon-dfdb.service
After=postgresql.service mastodon-dfdb.service
[Container]

View file

@ -1,6 +1,6 @@
[Unit]
Description=Mastodon Sidekiq Service
Requires=postgresql.service mastodon-dfdb.service
BindsTo=postgresql.service mastodon-dfdb.service
After=postgresql.service mastodon-dfdb.service
[Container]

View file

@ -1,6 +1,6 @@
[Unit]
Description=Mastodon Streaming Service
Requires=postgresql.service mastodon-dfdb.service
BindsTo=postgresql.service mastodon-dfdb.service
After=postgresql.service mastodon-dfdb.service
[Container]

View file

@ -1,6 +1,6 @@
[Unit]
Description=Mastodon Web Service
Requires=postgresql.service mastodon-dfdb.service
BindsTo=postgresql.service mastodon-dfdb.service
After=postgresql.service mastodon-dfdb.service
[Container]

View file

@ -1,7 +1,7 @@
[Unit]
Description=SearXNG
After=searxng-dfdb.service
Requires=searxng-dfdb.service
BindsTo=searxng-dfdb.service
[Container]
Image=docker.io/searxng/searxng:latest

View file

@ -1,7 +1,7 @@
[Unit]
Description=Sharkey's ActivityPub Federation service
After=postgresql.service sharkey-dfdb.service
Requires=postgresql.service sharkey-dfdb.service
BindsTo=postgresql.service sharkey-dfdb.service
[Container]
ContainerName=sharkey-activity

View file

@ -1,7 +1,7 @@
[Unit]
Description=Sharkey's API and Web service
After=postgresql.service sharkey-dfdb.service
Requires=postgresql.service sharkey-dfdb.service
BindsTo=postgresql.service sharkey-dfdb.service
[Container]
ContainerName=sharkey-api

View file

@ -1,7 +1,7 @@
[Unit]
Description=Sharkey's Media service
After=postgresql.service sharkey-dfdb.service
Requires=postgresql.service sharkey-dfdb.service
BindsTo=postgresql.service sharkey-dfdb.service
[Container]
ContainerName=sharkey-media

View file

@ -1,7 +1,7 @@
[Unit]
Description=Sharkey's Worker service
After=postgresql.service sharkey-dfdb.service
Requires=postgresql.service sharkey-dfdb.service
BindsTo=postgresql.service sharkey-dfdb.service
[Container]
ContainerName=sharkey-worker

View file

@ -1,6 +1,6 @@
[Unit]
Description=Zitadel
Requires=postgresql.service
BindsTo=postgresql.service
After=postgresql.service
[Container]