Files
Watari-Ansible/playbooks/gitea/docker-compose.yml
2026-11-10 02:49:04 +00:00

56 lines
1.9 KiB
YAML

# 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
- GITEA__security__INSTALL_LOCK=true
- GITEA__server__SSH_DOMAIN=git.netbird.cloud
- GITEA__server__SSH_PORT=22
- GITEA__server__SSH_LISTEN_PORT=22
networks:
- gitea
volumes:
- /apps/data/:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- "3000:3000"
- "2222:22"
labels:
kuma.my-app.http.name: "Gitea"
kuma.my-app.http.url: "https://git.frantecrt.duckdns.org"
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: "https://git.frantecrt.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$