feat (service): add Forgejo runner to Docker compose to enable actions

This commit is contained in:
Thomas Bishop 2025-07-08 16:04:20 +01:00
parent a10ce7c5ab
commit 20a4457ac6

View file

@ -36,6 +36,23 @@ services:
volumes:
- /data/mysql/forgejo:/var/lib/mysql
# This is so that I can run Forgejo actions
runner:
image: code.forgejo.org/forgejo/runner:3.4.0
container_name: forgejo-runner
restart: unless-stopped
environment:
- FORGEJO_INSTANCE_URL=https://forgejo.systemsobscure.net
- FORGEJO_RUNNER_REGISTRATION_TOKEN=${FORGEJO_RUNNER_REGISTRATION_TOKEN}
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /var/www:/var/www
- ./runner-data:/data
depends_on:
- server
networks:
- forgejo
networks:
forgejo:
external: false