added gitea + drone config

This commit is contained in:
2026-02-26 11:41:02 +01:00
parent 9688eb529d
commit 0cab06acd4
2 changed files with 45 additions and 0 deletions

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

@@ -0,0 +1,36 @@
version: "3"
networks:
ci:
external: false
services:
gitea:
image: docker.gitea.com/gitea:1.25.1
container_name: gitea
environment:
- USER_UID=1000
- USER_GID=1000
- GITEA__webhook__ALLOWED_HOST_LIST=*
- GITEA__server__ROOT_URL=https://gitea.gilmour109.de
restart: always
networks:
- ci
volumes:
- ./gitea:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- "3000:3000"
- "222:22"
drone:
container_name: drone
image: drone/drone:latest
restart: always
networks:
- ci
env_file: drone.env
volumes:
- ./drone:/data
ports:
- "2201:80"

9
gitea/drone.env.example Normal file
View File

@@ -0,0 +1,9 @@
DRONE_GITEA_SERVER=https://gitea.example.com
DRONE_GITEA_CLIENT_ID=client-id
DRONE_GITEA_CLIENT_SECRET=client-secret
DRONE_GIT_ALWAYS_AUTH=true
DRONE_SERVER_PROTO=https
DRONE_SERVER_HOST=drone.example.com
DRONE_EXTERNAL_HOST=drone.example.com
DRONE_RPC_SECRET=rpc-secret
DRONE_USER_CREATE=username:admin,admin:true