Initial docker-compose configuration of drone deployment (server + runner agent).

This commit is contained in:
Madeorsk 2021-07-31 23:00:06 +02:00
commit b42d7aecfe
3 changed files with 47 additions and 0 deletions

12
.env.sample Normal file
View File

@ -0,0 +1,12 @@
DRONE_GITEA_CLIENT_ID=
DRONE_GITEA_CLIENT_SECRET=
DRONE_GITEA_SERVER=https://aaa.bbb
DRONE_GIT_ALWAYS_AUTH=true
DRONE_RPC_HOST=
DRONE_RPC_PROTO=https
# openssl rand -hex 64
DRONE_RPC_SECRET=
DRONE_SERVER_HOST=
DRONE_SERVER_PROTO=https

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
/drone-data
.env

33
docker-compose.yml Normal file
View File

@ -0,0 +1,33 @@
version: '3'
services:
server:
image: drone/drone
ports:
- 8007:80
networks:
- drone
volumes:
- ./drone-data:/var/lib/drone/
- /var/run/docker.sock:/var/run/docker.sock
env_file:
- .env
restart: always
runner:
image: drone/drone-runner-docker
ports:
- 3007:3000
networks:
- drone
volumes:
- /var/run/docker.sock:/var/run/docker.sock
env_file:
- .env
environment:
- DRONE_RUNNER_CAPACITY=2
- DRONE_RUNNER_NAME=drone.madeorsk.com
networks:
drone:
name: drone_network