Ensure the forgejo runner cache is accessible to jobs

This commit is contained in:
Jake Howard 2025-01-05 21:35:02 +00:00
parent 339908bc56
commit bef0a4bc81
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 5 additions and 3 deletions

View file

@ -39,10 +39,10 @@ cache:
# The host of the cache server.
# It's not for the address to listen, but the address to connect from job containers.
# So 0.0.0.0 is a bad choice, leave it empty to detect automatically.
host: ""
host: "{{ ansible_default_ipv4.address }}"
# The port of the cache server.
# 0 means to use a random available port.
port: 0
port: 4000
# The external cache server URL. Valid only when enable is true.
# If it's specified, act_runner will use this URL as the ACTIONS_CACHE_URL rather than start a server by itself.
# The URL should generally end with "/".

View file

@ -9,12 +9,14 @@ services:
- TZ={{ timezone }}
- DOCKER_HOST=tcp://docker_proxy:2375
restart: unless-stopped
command: forgejo-runner daemon
command: forgejo-runner --config config.yml daemon
networks:
- default
- forgejo_private
depends_on:
- docker_proxy
ports:
- "{{ ansible_default_ipv4.address }}:4000:4000"
docker_proxy:
image: lscr.io/linuxserver/socket-proxy:latest