Add Dockerfile and update docker-compose.yml for local runner configuration

This commit is contained in:
Nils-Johan Gynther
2026-05-12 19:49:26 +02:00
parent 6fb89ee820
commit 7a47b97a11
2 changed files with 33 additions and 3 deletions
+13
View File
@@ -0,0 +1,13 @@
FROM gitea/act_runner:latest
USER root
# Docker CLI behövs för shell-jobb som kör docker-kommandon direkt
# openssh-client behövs för deployment-scripts via SSH
# curl allmänt användbart i workflow-steg
RUN apt-get update && \
apt-get install -y --no-install-recommends \
curl \
docker.io \
openssh-client \
&& rm -rf /var/lib/apt/lists/*
+20 -3
View File
@@ -1,6 +1,9 @@
services:
gitea-runner:
image: gitea/act_runner:latest
build:
context: .
dockerfile: Dockerfile
image: gitea-act-runner:local
container_name: gitea-runner
restart: unless-stopped
environment:
@@ -9,6 +12,20 @@ services:
GITEA_RUNNER_NAME: ${GITEA_RUNNER_NAME:-recipe-app}
GITEA_RUNNER_LABELS: ${GITEA_RUNNER_LABELS:-backend-node24:docker://node:24-bullseye,flutter-3-41:docker://ghcr.io/cirruslabs/flutter:stable}
volumes:
- ./data:/data
- runner-data:/data
- /var/run/docker.sock:/var/run/docker.sock
restart: always
healthcheck:
test: ["CMD-SHELL", "pgrep -x act_runner > /dev/null || exit 1"]
interval: 30s
timeout: 10s
retries: 3
start_period: 20s
networks:
- runner-network
volumes:
runner-data:
networks:
runner-network:
driver: bridge