1. 建立目录
mkdir -p /data/{gitea,act_runner}
2. docker-compose.yml
version: "3"
networks:
custom-local-net:
driver: bridge
ipam:
config:
- subnet: "172.16.0.0/18"
gateway: "172.16.0.1"
services:
gitea:
image: gitea/gitea:1.20.2
container_name: gitea
restart: always
networks:
- custom-local-net
volumes:
- /data/gitea:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- "3000:3000"
- "2222:22"
environment:
- USER_UID: 1000
- USER_GID: 1000
act_runner:
image: gitea/act_runner:0.25
container_name: act_runner
restart: always
depends_on:
- gitea
networks:
- custom-local-net
volumes:
- /data/act_runner:/data
- /var/run/docker.sock:/var/run/docker.sock
environment:
- GITEA_INSTANCE_URL: http://127.0.0.1:3000
- GITEA_RUNNER_REGISTRATION_TOKEN: cQnI5tCqfHt6UwX06XulB3mO2huVB9iBWT8wMnOq
- GITEA_RUNNER_NAME: runner
标签:ci,GITEA,runner,gitea,cd,etc,act,data
From: https://www.cnblogs.com/liujitao79/p/17622339.html