synth.download/beeper/etc/containers/systemd/knot/knot.container

24 lines
563 B
Text

[Unit]
Description=Tangled Knot Server
[Container]
Image=ghcr.io/zenfyrdev/knot:latest
ContainerName=knot
EnvironmentFile=/etc/containers/systemd/knot/.env
PublishPort=127.0.0.1:44131:5555
PublishPort=20564:22
Volume=/var/containers/knot/keys:/etc/ssh/keys:Z
Volume=/var/containers/knot/repositories:/home/git/repositories:Z
Volume=/var/containers/knot/data:/app:Z
# Security
NoNewPrivileges=true
# Resources
Memory=512m
PodmanArgs=--memory-reservation=256m --cpus=0.4 --cpu-shares=256
[Service]
Restart=always
RestartSec=10s
[Install]
WantedBy=default.target