Initial work on drone

This commit is contained in:
David Boreham 2022-11-20 22:35:19 -07:00
parent 032dfef8ae
commit a2287c0ece
4 changed files with 26 additions and 0 deletions

0
drone/README.md Normal file
View File

23
drone/docker-compose.yml Normal file
View File

@ -0,0 +1,23 @@
version: "3"
services:
server:
image: drone/drone:2.15.0
container_name: drone
environment:
- DRONE_GITEE_SERVER=http://host.docker.internal:3000
- DRONE_GITEE_CLIENT_ID=f7018cdd7c2a2515eb0cc3eeea039a3aeda0991a520c9e6f7eca37b97761de20
- DRONE_GITEE_CLIENT_SECRET=a29f1465460f620d1238b6ebf207ae6778a6bfd074b3c7befe72d5f9647ed02c
- DRONE_GITEE_API_SERVER=http://host.docker.internal:3000/api/v5
- DRONE_RPC_SECRET=13807911a5934895854d1cc0dceea44a
- DRONE_SERVER_HOST=localhost
- DRONE_SERVER_PROTO=http
restart: always
volumes:
- ./drone:/data
extra_hosts:
- "host.docker.internal:host-gateway"
# TODO: remove fixed host port number
ports:
- "7080:80"
- "7443:443"

2
drone/run-this-first.sh Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
mkdir -p ./drone

View File

@ -23,6 +23,7 @@ services:
- ./gitea:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
# TODO: remove fixed host port number
ports:
- "3000:3000"
- "222:22"