20250225版本 #9

Merged
xxq250 merged 65 commits from develop into master 2025-02-25 11:05:19 +08:00
2 changed files with 39 additions and 1 deletions
Showing only changes of commit c03d275d4f - Show all commits

View File

@ -4,7 +4,7 @@ ENV GOPROXY https://goproxy.cn
WORKDIR /app
ADD . .
COPY . .
RUN sh build.sh

38
docker-compose.yml Normal file
View File

@ -0,0 +1,38 @@
version: '3'
services:
app:
container_name: gitea_hat
restart: always
build:
context: .
dockerfile: Dockerfile
external_links:
- mysql
volumes:
- /root/gitea:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
networks:
- default
- app_net
ports:
- 10082:3000
depends_on:
- runner
runner:
container_name: my_runner
image: gitea/act_runner:nightly
restart: always
networks:
- default
- app_net
volumes:
- /var/run/docker.sock:/var/run/docker.sock:rw
environment:
GITEA_INSTANCE_URL: 'http://xxxxxx:10082' # 输入服务地址
GITEA_RUNNER_REGISTRATION_TOKEN: 'xxx' # 需要gitea中runner token
networks:
app_net:
external: true