2024-03-09 21:23:55 +01:00
|
|
|
[Unit]
|
|
|
|
Description=Forgejo Runner
|
|
|
|
Requires=podman.socket
|
|
|
|
|
|
|
|
[Container]
|
|
|
|
ContainerName=forgejo-runner
|
|
|
|
|
|
|
|
User=0
|
|
|
|
SecurityLabelDisable=true
|
2024-03-19 21:05:17 +01:00
|
|
|
SeccompProfile=/usr/share/containers/seccomp.json
|
2024-03-09 21:23:55 +01:00
|
|
|
|
|
|
|
Image=code.forgejo.org/forgejo/runner:3.3.0
|
|
|
|
Exec=forgejo-runner --config config.yml daemon
|
|
|
|
|
2024-03-19 21:05:17 +01:00
|
|
|
Environment=DOCKER_HOST=unix:///run/user/987/podman/podman.sock
|
|
|
|
|
2024-03-09 21:23:55 +01:00
|
|
|
Volume=forgejo-runner_data:/data
|
2024-03-19 21:05:17 +01:00
|
|
|
Volume=/run/user/987/podman/podman.sock:/run/user/987/podman/podman.sock
|
|
|
|
Volume=/usr/share/containers/seccomp.json:/usr/share/containers/seccomp.json:ro
|
2024-03-09 21:23:55 +01:00
|
|
|
|
|
|
|
Network=pasta
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Restart=on-failure
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=default.target
|