mirror of
https://github.com/aykhans/my-self-host-services.git
synced 2025-07-03 12:27:53 +00:00
first commit
This commit is contained in:
9
gitea/.env.example
Normal file
9
gitea/.env.example
Normal 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
2
gitea/.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
/data/*
|
||||
/act-data/*
|
37
gitea/docker-compose.yml
Normal file
37
gitea/docker-compose.yml
Normal 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
|
Reference in New Issue
Block a user