added gitea + drone config
This commit is contained in:
36
gitea/docker-compose.yml
Normal file
36
gitea/docker-compose.yml
Normal 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
9
gitea/drone.env.example
Normal 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
|
||||||
Reference in New Issue
Block a user