diff --git a/beeper/etc/containers/systemd/forgejo/forgejo-runner.container b/beeper/etc/containers/systemd/forgejo/forgejo-runner.container new file mode 100644 index 0000000..f311c8a --- /dev/null +++ b/beeper/etc/containers/systemd/forgejo/forgejo-runner.container @@ -0,0 +1,20 @@ +[Unit] +Description=Forgejo Runner +After=dind.service +Requires=dind.service + +[Container] +Image=data.forgejo.org/forgejo/runner:4.0.0 +ContainerName=forgejo-runner +EnvironmentFile=/var/containers/forgejo/.env.runner +User=1001:1001 +Volume=/var/containers/forgejo/runner:/data:Z +Volume=/var/run/dind/docker.sock:/var/run/docker.sock:z +Exec=/bin/sh -c "sleep 5; forgejo-runner daemon" + +[Service] +Restart=always +RestartSec=10s + +[Install] +WantedBy=default.target