Files
official-site-base/docker/gitea.docker-compose.yml
T

29 lines
817 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 本地 Phase 0 验证用 Gitea + act_runner
# 用法:cd docker && docker compose -f gitea.docker-compose.yml up -d
# 注意 Windows Docker Desktopact_runner 挂 docker.sock 可能需改为
# - //var/run/docker.sock:/var/run/docker.sock (双斜杠)
services:
gitea:
image: gitea/gitea:1
environment:
- USER_UID=1000
- USER_GID=1000
volumes:
- ./gitea-data:/data
ports:
- "3000:3000" # Web
- "2222:22" # SSH
restart: unless-stopped
runner:
image: gitea/act_runner:latest
environment:
- GITEA_INSTANCE_URL=http://gitea:3000
- GITEA_RUNNER_REGISTRATION_TOKEN=phase0-local-token
volumes:
- ./runner-data:/data
- /var/run/docker.sock:/var/run/docker.sock
depends_on:
- gitea
restart: unless-stopped