Initial commit
This commit is contained in:
commit
c9263af45e
|
|
@ -0,0 +1 @@
|
||||||
|
.env
|
||||||
|
|
@ -0,0 +1,15 @@
|
||||||
|
# Self Hosted environment for coding
|
||||||
|
A quick docker compose to spin up tools for hosting your own git environment.
|
||||||
|
|
||||||
|
# Starting up
|
||||||
|
|
||||||
|
Copy `example.env` to `.env` and fill in all secrets.
|
||||||
|
|
||||||
|
Run with docker copose
|
||||||
|
```sh
|
||||||
|
docker compose up -d
|
||||||
|
```
|
||||||
|
|
||||||
|
## Roadmap
|
||||||
|
- [X] CI environment (Done)
|
||||||
|
- [ ] Git server (Gitea) - need to migrate current install to docker environment
|
||||||
|
|
@ -0,0 +1,32 @@
|
||||||
|
version: '3'
|
||||||
|
|
||||||
|
services:
|
||||||
|
server:
|
||||||
|
image: drone/drone:2
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
DRONE_SERVER_HOST: ${SERVER_HOST}:${SERVER_PORT}
|
||||||
|
DRONE_SERVER_PROTO: http
|
||||||
|
DRONE_GITEA_SERVER: ${DRONE_GITEA_SERVER}
|
||||||
|
DRONE_GITEA_CLIENT_ID: ${DRONE_GITEA_CLIENT_ID}
|
||||||
|
DRONE_GITEA_CLIENT_SECRET: ${DRONE_GITEA_CLIENT_SECRET}
|
||||||
|
DRONE_RPC_SECRET: ${DRONE_RPC_SECRET}
|
||||||
|
DRONE_USER_CREATE: ${DRONE_USER_CREATE}
|
||||||
|
ports:
|
||||||
|
- "${SERVER_PORT}:80"
|
||||||
|
volumes:
|
||||||
|
- /var/lib/drone:/data
|
||||||
|
|
||||||
|
runner:
|
||||||
|
image: drone/drone-runner-docker:1
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
DRONE_RPC_PROTO: http
|
||||||
|
DRONE_RPC_HOST: server
|
||||||
|
DRONE_RPC_SECRET: ${DRONE_RPC_SECRET}
|
||||||
|
DRONE_RUNNER_CAPACITY: 2
|
||||||
|
DRONE_RUNNER_NAME: my-docker-runner
|
||||||
|
ports:
|
||||||
|
- "${RUNNER_PORT}:3000"
|
||||||
|
volumes:
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
|
|
@ -0,0 +1,8 @@
|
||||||
|
SERVER_PORT=<SECRET>
|
||||||
|
RUNNER_PORT=<SECRET>
|
||||||
|
SERVER_HOST=<SECRET>
|
||||||
|
DRONE_GITEA_SERVER=<SECRET>
|
||||||
|
DRONE_GITEA_CLIENT_ID=<SECRET>
|
||||||
|
DRONE_GITEA_CLIENT_SECRET=<SECRET>
|
||||||
|
DRONE_RPC_SECRET=<SECRET>
|
||||||
|
DRONE_USER_CREATE=<SECRET>
|
||||||
Loading…
Reference in New Issue