1
0
This commit is contained in:
syui 2024-05-21 11:09:09 +09:00
parent 5813877219
commit 95471c9aca
Signed by: syui
GPG Key ID: 5417CFEBAD92DF56
2 changed files with 38 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
*.env*

37
compose.yml Normal file
View File

@ -0,0 +1,37 @@
networks:
gitea:
external: false
services:
server:
image: gitea/gitea
container_name: gitea
environment:
- USER_UID=1000
- USER_GID=1000
restart: always
networks:
- gitea
volumes:
- ./data:/data
ports:
- "30001:3000"
- "22001:22"
env_file: .env.local
runner:
build:
context: ./act_runner
dockerfile: Dockerfile
container_name: runner
restart: always
volumes:
- ./runner_data:/data
- /var/run/docker.sock:/var/run/docker.sock
environment:
GITEA_INSTANCE_URL: https://git.syui.ai
GITEA_RUNNER_REGISTRATION_TOKEN: xxx
DOCKER_HOST: unix:///var/run/docker.sock
GITEA_RUNNER_NAME: open-runner
GITEA_RUNNER_LABELS: ubuntu-latest,ubuntu-22.04,archlinux
network_mode: host