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

24 lines
603 B
Text

[Unit]
Description=Mastodon Ingress Service
BindsTo=postgresql.service mastodon-dfdb.service
After=postgresql.service mastodon-dfdb.service
[Container]
Image=ghcr.io/synth-download/mastodon-ingress:nightly
ContainerName=mastodon-ingress
EnvironmentFile=/etc/containers/systemd/mastodon/.env.secrets
EnvironmentFile=/etc/containers/systemd/mastodon/.env
Network=mastodon.network
Network=postgresql.network
# Security
NoNewPrivileges=true
# Resources
Memory=512m
PodmanArgs=--memory-reservation=128m --cpus=0.1 --cpu-shares=512
[Service]
Restart=always
RestartSec=10s
[Install]
WantedBy=default.target