Files
canopy-workloads/gitea_runner/docker-compose.yml
kiskaadee 45a9450526 fix(gitea,gitea_runner): use relative state mounts and nix-independent runner base
- Replace ~/var/lib/homelab/<app> with ../../var/lib/homelab/<app> in gitea and gitea_runner compose files so docker compose resolves state without HOME
- Remove inert HOMELAB_STATE_ROOT from gitea_runner/.env-example and update gitea_runner/README.md
- Rebase gitea_runner/Dockerfile on gitea/act_runner:latest with Alpine nodejs/git/bash/coreutils, regular-file /etc/nix/nix.conf, pinned nixos/nix:2.24.12 store, and entrypoint-nix.sh auto-seed wrapper
2026-11-18 23:03:22 -05:00

25 lines
682 B
YAML

services:
gitea_runner:
build: .
image: ${RUNNER_IMAGE:-gitea-runner:local}
container_name: ${CONTAINER_NAME:-gitea_runner}
restart: unless-stopped
environment:
- GITEA_INSTANCE_URL=${GITEA_INSTANCE_URL:-http://gitea:3000}
- GITEA_RUNNER_REGISTRATION_TOKEN=${GITEA_RUNNER_TOKEN:-}
- GITEA_RUNNER_NAME=${GITEA_RUNNER_NAME:-homelab-runner}
- GITEA_RUNNER_LABELS=${GITEA_RUNNER_LABELS:-ubuntu-latest:host,nix:host}
volumes:
- ../../var/lib/homelab/gitea_runner:/data
- nix-store:/nix
networks:
- proxy-net
volumes:
nix-store: {}
networks:
proxy-net:
name: ${PROXY_NETWORK:-proxy-net}
external: true