Added base config

This commit is contained in:
shibco 2022-11-05 13:33:29 +01:00
commit 4ad268e2bc
No known key found for this signature in database
GPG Key ID: E37E5312F6E490E7
3 changed files with 53 additions and 0 deletions

2
README.md Normal file
View File

@ -0,0 +1,2 @@
# Underscore Deploy
C/I System for Underscore projects.

44
config/docker-compose.yml Normal file
View File

@ -0,0 +1,44 @@
version: "3.8"
services:
drone:
image: drone/drone:latest
container_name: drone
ports:
- "880:80"
- "4443:443"
environment:
- DRONE_SERVER_HOST=${DRONE_SERVER_HOST}
- DRONE_SERVER_PROTO=${DRONE_SERVER_PROTO}
- DRONE_RPC_SECRET=${DRONE_RPC_SECRET}
- DRONE_COOKIE_SECRET=${DRONE_COOKIE_SECRET}
- DRONE_COOKIE_TIMEOUT=720h
- DRONE_GITEA_CLIENT_ID=${DRONE_GITEA_CLIENT_ID}
- DRONE_GITEA_CLIENT_SECRET=${DRONE_GITEA_CLIENT_SECRET}
- DRONE_GITEA_SERVER=${DRONE_SERVER_PROTO}://${DRONE_SERVER_HOST}
- DRONE_LOGS_DEBUG=true
- DRONE_CRON_DISABLED=true
- DRONE_USER_CREATE=${DRONE_USER_CREATE}
volumes:
- ./drone_data/data:/data
- ./drone_data/drone:/drone
networks:
- build_net
runner:
image: drone/drone-runner-docker:latest
container_name: runner
environment:
- DRONE_RPC_HOST=drone
- DRONE_RPC_PROTO=http
- DRONE_RPC_SECRET=${DRONE_RPC_SECRET}
- DRONE_RUNNER_CAPACITY=2
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./drone_data/drone:/drone
networks:
- build_net
networks:
build_net:
name: build_net

7
config/sample.env Normal file
View File

@ -0,0 +1,7 @@
DRONE_SERVER_HOST=
DRONE_SERVER_PROTO=
DRONE_RPC_SECRET=
DRONE_COOKIE_SECRET=
DRONE_GITEA_CLIENT_ID=
DRONE_GITEA_CLIENT_SECRET=
DRONE_USER_CREATE=