feat (service): add Forgejo runner to Docker compose to enable actions
This commit is contained in:
parent
a10ce7c5ab
commit
20a4457ac6
1 changed files with 17 additions and 0 deletions
|
@ -36,6 +36,23 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- /data/mysql/forgejo:/var/lib/mysql
|
- /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:
|
networks:
|
||||||
forgejo:
|
forgejo:
|
||||||
external: false
|
external: false
|
||||||
|
|
Loading…
Add table
Reference in a new issue