...gitea:image:gitea/gitea...healthcheck:# checks availability of Gitea's front-end with curltest:["CMD","curl","-f","<instance_url>"]interval:10sretries:3start_period:30stimeout:10srunner:image:gitea/act_runnerrestart:alwaysdepends_on:gitea:# required so runner can attach to gitea, see "healthcheck"condition:service_healthy restart:truevolumes:- ./data/act_runner:/data- /var/run/docker.sock:/var/run/docker.sockenvironment:- GITEA_INSTANCE_URL=<instance url># When using Docker Secrets, it's also possible to use# GITEA_RUNNER_REGISTRATION_TOKEN_FILE to pass the location.# The env var takes precedence.# Needed only for the first start.- GITEA_RUNNER_REGISTRATION_TOKEN=<registration token>
Running act_runner using Docker-in-Docker (DIND)
...runner:image:gitea/act_runner:latest-dind-rootlessrestart:alwaysprivileged:truedepends_on:- giteavolumes:- ./data/act_runner:/dataenvironment:- GITEA_INSTANCE_URL=<instance url>- DOCKER_HOST=unix:///var/run/user/1000/docker.sock# When using Docker Secrets, it's also possible to use# GITEA_RUNNER_REGISTRATION_TOKEN_FILE to pass the location.# The env var takes precedence.# Needed only for the first start.- GITEA_RUNNER_REGISTRATION_TOKEN=<registration token>