adding local development files [CI SKIP]

This commit is contained in:
Brad Rydzewski 2020-11-11 14:25:18 -05:00
parent c8d993469d
commit 4d6ad33e9b
5 changed files with 91 additions and 0 deletions

1
.gitignore vendored
View file

@ -7,4 +7,5 @@
.env.*
release/
scripts/*.go
docker/**/data
TODO*

1
docker/compose/README.md Normal file
View file

@ -0,0 +1 @@
This directory contains docker compose files used by the core development team for local development and testing purposes only. These are not part of the core distribution, and are not intended for use outside of the core development team. We are not currently accepting changes or additions to these files.

View file

@ -0,0 +1,40 @@
version: "3.8"
services:
drone:
image: drone/drone:latest
ports:
- "9000:80"
environment:
- DRONE_SERVER_HOST=localhost:9000
- DRONE_SERVER_PROTO=http
- DRONE_RPC_SECRET=bea26a2221fd8090ea38720fc445eca6
- DRONE_COOKIE_SECRET=e8206356c843d81e05ab6735e7ebf075
- DRONE_COOKIE_TIMEOUT=720h
- DRONE_GITEA_CLIENT_ID=${DRONE_GITEA_CLIENT_ID}
- DRONE_GITEA_CLIENT_SECRET=${DRONE_GITEA_CLIENT_SECRET}
- DRONE_GITEA_SERVER=http://gitea:3000
- DRONE_LOGS_DEBUG=true
- DRONE_CRON_DISABLED=true
volumes:
- ./data:/data
networks:
- default
- gitea
runner:
image: drone/drone-runner-docker:latest
environment:
- DRONE_RPC_HOST=drone
- DRONE_RPC_PROTO=http
- DRONE_RPC_SECRET=bea26a2221fd8090ea38720fc445eca6
volumes:
- /var/run/docker.sock:/var/run/docker.sock
networks:
- default
- gitea
networks:
default:
external: false
gitea:
external:
name: gitea

View file

@ -0,0 +1,28 @@
version: "3.8"
services:
drone:
image: drone/drone:latest
ports:
- "8080:80"
environment:
- DRONE_SERVER_HOST=localhost:8080
- DRONE_SERVER_PROTO=http
- DRONE_SERVER_PROXY_HOST=${DRONE_SERVER_PROXY_HOST}
- DRONE_SERVER_PROXY_PROTO=https
- DRONE_RPC_SECRET=bea26a2221fd8090ea38720fc445eca6
- DRONE_COOKIE_SECRET=e8206356c843d81e05ab6735e7ebf075
- DRONE_COOKIE_TIMEOUT=720h
- DRONE_GITHUB_CLIENT_ID=${DRONE_GITHUB_CLIENT_ID}
- DRONE_GITHUB_CLIENT_SECRET=${DRONE_GITHUB_CLIENT_SECRET}
- DRONE_LOGS_DEBUG=true
- DRONE_CRON_DISABLED=true
volumes:
- ./data:/data
runner:
image: drone/drone-runner-docker:latest
environment:
- DRONE_RPC_HOST=drone
- DRONE_RPC_PROTO=http
- DRONE_RPC_SECRET=bea26a2221fd8090ea38720fc445eca6
volumes:
- /var/run/docker.sock:/var/run/docker.sock

View file

@ -0,0 +1,21 @@
version: "3.8"
services:
gitea:
image: gitea/gitea:latest
container_name: gitea
environment:
- USER_UID=1000
- USER_GID=1000
- ROOT_URL=http://gitea:3000
networks:
- gitea
volumes:
- ./data:/data
ports:
- "3000:3000"
- "3022:22"
networks:
gitea:
name: gitea
external: false