🎉 First commit!
This commit is contained in:
commit
def4c41d59
11
.env.example
Normal file
11
.env.example
Normal file
@ -0,0 +1,11 @@
|
||||
DOMAIN=example.com
|
||||
SECRET=somelongstring
|
||||
|
||||
GITEA_DOMAIN=git.example.com
|
||||
GITEA_CLIENT_ID=somelongstring
|
||||
GITEA_CLIENT_SECRET="somelongbase64string"
|
||||
|
||||
RUNNER_COUNT=4
|
||||
RUNNER_NAME=Actions
|
||||
# Do not add a space in the runner name or you'll be debugging sentry for
|
||||
# like an whole hour questioning what you're doing with your life.
|
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
mnt/
|
||||
.env
|
37
docker-compose.yml
Normal file
37
docker-compose.yml
Normal file
@ -0,0 +1,37 @@
|
||||
version: "3"
|
||||
|
||||
services:
|
||||
drone:
|
||||
image: drone/drone:1
|
||||
volumes:
|
||||
- ./mnt/drone:/data
|
||||
environment:
|
||||
- "VIRTUAL_HOST=${DOMAIN}"
|
||||
- "LETSENCRYPT_HOST=${DOMAIN}"
|
||||
- "DRONE_GITEA_CLIENT_ID=${GITEA_CLIENT_ID}"
|
||||
- "DRONE_GITEA_CLIENT_SECRET=${GITEA_CLIENT_SECRET}"
|
||||
- "DRONE_GITEA_SERVER=https://${GITEA_DOMAIN}"
|
||||
- "DRONE_GIT_ALWAYS_AUTH=true"
|
||||
- "DRONE_RPC_SECRET=${SECRET}"
|
||||
- "DRONE_SERVER_HOST=${DOMAIN}"
|
||||
- "DRONE_SERVER_PROTO=https"
|
||||
networks:
|
||||
- default
|
||||
- 10000-nginx-proxy_nginx-proxy
|
||||
|
||||
runner:
|
||||
image: drone/drone-runner-docker:1
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
environment:
|
||||
- "DRONE_RPC_PROTO=http"
|
||||
- "DRONE_RPC_HOST=drone"
|
||||
- "DRONE_RPC_SECRET=${SECRET}"
|
||||
- "DRONE_RUNNER_CAPACITY=${RUNNER_COUNT}"
|
||||
- "DRONE_RUNNER_NAME=${RUNNER_NAME}"
|
||||
ports:
|
||||
- 3000:3000
|
||||
|
||||
networks:
|
||||
10000-nginx-proxy_nginx-proxy:
|
||||
external: true
|
Loading…
Reference in New Issue
Block a user