gitea migration

This commit is contained in:
Ryan Toler
2026-03-24 05:26:28 +00:00
parent a066ed7760
commit febff2baa3
2 changed files with 47 additions and 0 deletions

View File

@@ -0,0 +1 @@
# Unused

View File

@@ -0,0 +1,46 @@
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$