first commit
This commit is contained in:
26
docker-compose.yml
Normal file
26
docker-compose.yml
Normal file
@@ -0,0 +1,26 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
gitea-actions-runner:
|
||||
image: gitea/act_runner:latest
|
||||
container_name: gitea-act-runner
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- runner-data:/data
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
working_dir: /data # 关键:设置工作目录为卷挂载点
|
||||
environment:
|
||||
- GITEA_INSTANCE_URL=https://git.bmycode.help # 你的 Gitea 地址
|
||||
- GITEA_RUNNER_REGISTRATION_TOKEN=ipofHSVd0Hv3vWPplrxw7qKJteXYYfqfl9dCWIfj
|
||||
- GITEA_RUNNER_LABELS=ubuntu-latest:docker://node:24-alpine
|
||||
- GITEA_RUNNER_NAME=my-vue-app-runner
|
||||
networks:
|
||||
- gitea-actions-network
|
||||
|
||||
volumes:
|
||||
runner-data:
|
||||
|
||||
|
||||
networks:
|
||||
gitea-actions-network:
|
||||
driver: bridge
|
||||
Reference in New Issue
Block a user