Drone CI server and Drone Docker runner. #34
18
drone-runner/.env.dist
Normal file
18
drone-runner/.env.dist
Normal file
|
@ -0,0 +1,18 @@
|
|||
# see https://hub.docker.com/r/drone/drone-runner-docker
|
||||
IMAGE_VERSION=1
|
||||
|
||||
WEBUI_BIND_ADDR=127.0.0.1
|
||||
WEBUI_BIND_PORT=3000
|
||||
|
||||
# Drone settings
|
||||
# https://docs.drone.io/runner/docker/installation/linux/
|
||||
DRONE_RPC_PROTO=https
|
||||
DRONE_RPC_HOST=drone.domain.tld
|
||||
DRONE_RPC_SECRET=super-duper-secret
|
||||
|
||||
DRONE_RUNNER_CAPACITY=2
|
||||
DRONE_RUNNER_NAME=runner-name
|
||||
|
||||
# Service settings
|
||||
LOG_MAX_SIZE=5m
|
||||
LOG_MAX_FILE=5
|
18
drone-runner/docker-compose.yml
Normal file
18
drone-runner/docker-compose.yml
Normal file
|
@ -0,0 +1,18 @@
|
|||
# https://hub.docker.com/r/drone/drone-runner-docker
|
||||
version: '3.7'
|
||||
|
||||
services:
|
||||
drone-runner:
|
||||
image: "drone/drone-runner-docker:${IMAGE_VERSION:-1}"
|
||||
container_name: drone-runner
|
||||
volumes:
|
||||
- "${HOST_DATA_DIR:-./data}:/data"
|
||||
ports:
|
||||
- "${WEBUI_BIND_ADDR:-127.0.0.1}:${WEBUI_BIND_PORT:-3000}:3000"
|
||||
env_file: .env
|
||||
restart: unless-stopped
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
max-size: "${LOG_MAX_SIZE:-5m}"
|
||||
max-file: "${LOG_MAX_FILE:-5}"
|
19
drone-runner/nginx/drone-runner.conf
Normal file
19
drone-runner/nginx/drone-runner.conf
Normal file
|
@ -0,0 +1,19 @@
|
|||
server {
|
||||
listen 80;
|
||||
server_name drone-runner.domain.tld;
|
||||
|
||||
#charset utf-8;
|
||||
|
||||
location / {
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection $http_connection;
|
||||
|
||||
proxy_pass http://127.0.0.1:3000/;
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue