Files
PublicDockerCompose/giteaRunner/docker-compose.yml
2025-04-21 18:34:55 +08:00

18 lines
646 B
YAML
Raw Permalink 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.

services:
runner:
image: gitea/act_runner
restart: always
privileged: true
environment:
CONFIG_FILE: /config.yaml
GITEA_INSTANCE_URL: "https://code.congshangyun.com/"
GITEA_RUNNER_REGISTRATION_TOKEN: "你的gitea账号的registration token"
GITEA_RUNNER_NAME: "runner名称"
# GITEA_RUNNER_LABELS: "暂时不建议修改"
DOCKER_HOST: unix:///var/run/docker.sock # 这是docker的套接字用于Docker in Docker
ports:
- 9010:9010 # 这里是映射缓存端口
volumes:
- ./config.yaml:/config.yaml
- ./data:/data
- /var/run/docker.sock:/var/run/docker.sock