# yaml-language-server: $schema=https://raw.githubusercontent.com/compose-spec/compose-spec/master/schema/compose-spec.json networks: gitea: external: false services: server: image: docker.gitea.com/gitea:1.25.3 container_name: gitea restart: always environment: - USER=docker - USER_UID=991 - USER_GID=991 networks: - gitea volumes: - ./gitea:/data - /etc/timezone:/etc/timezone:ro - /etc/localtime:/etc/localtime:ro ports: - "3000:3000" - "2222:22" gitea_runner: image: gitea/act_runner:latest container_name: gitea_act_runner restart: always networks: - gitea volumes: # Mount the host Docker socket to allow the runner to spawn new containers - /var/run/docker.sock:/var/run/docker.sock # Optional: Mount a data volume for runner cache (though ephemeral runners don't need it) # - ./runner_data:/data environment: # Use the internal service name 'gitea' for the instance URL GITEA_INSTANCE_URL: "http://git.ryantoler.duckdns.org/" # !!! REPLACE WITH YOUR ACTUAL RUNNER REGISTRATION TOKEN !!! GITEA_RUNNER_REGISTRATION_TOKEN: "h3O6KxROG0OjSjDt46DerxSW8jGV1UV3mlonNKAr" GITEA_RUNNER_NAME: "docker-runner" # Optional: Set to 1 for ephemeral runners which don't reuse credentials # GITEA_RUNNER_EPHEMERAL: 1 # Optional: Define custom labels, default labels are provided automatically # GITEA_RUNNER_LABELS: "ubuntu-latest:docker://docker.io/gitea/runner-images:ubuntu-latest"ryan@AnsibleTerraform:~/github/Terraform/roles/ind/gitea$