first commit

This commit is contained in:
2024-12-06 00:08:43 +00:00
commit 5768c9c54d
25 changed files with 728 additions and 0 deletions

9
gitea/.env.example Normal file
View File

@ -0,0 +1,9 @@
# URL of the Gitea instance (e.g. https://gitea.example.com)
GITEA_INSTANCE_URL=
# How to get the token: https://docs.gitea.com/usage/actions/act-runner#obtain-a-registration-token
GITEA_RUNNER_REGISTRATION_TOKEN=
# UID and GID of the user that should run the runner (e.g. USER_UID=1000, USER_GID=1000)
USER_UID=
USER_GID=
# Name of the runner (e.g. runner-1)
GITEA_RUNNER_NAME=

2
gitea/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
/data/*
/act-data/*

37
gitea/docker-compose.yml Normal file
View File

@ -0,0 +1,37 @@
networks:
gitea:
external: false
caddy:
name: caddy
driver: bridge
external: true
services:
server:
image: gitea/gitea:1.22.3
container_name: gitea
environment:
- USER_UID=${USER_UID}
- USER_GID=${USER_GID}
restart: unless-stopped
networks:
- gitea
- caddy
volumes:
- ./data:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
act:
image: gitea/act_runner:0.2.11
container_name: gitea_act
restart: unless-stopped
environment:
- GITEA_INSTANCE_URL=${GITEA_INSTANCE_URL}
- GITEA_RUNNER_REGISTRATION_TOKEN=${GITEA_RUNNER_REGISTRATION_TOKEN}
- GITEA_RUNNER_NAME=${GITEA_RUNNER_NAME}
networks:
- gitea
volumes:
- ./act-data:/data
- /var/run/docker.sock:/var/run/docker.sock