Initial docker-compose configuration of drone deployment (server + runner agent).
This commit is contained in:
commit
b42d7aecfe
12
.env.sample
Normal file
12
.env.sample
Normal 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
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
/drone-data
|
||||
.env
|
33
docker-compose.yml
Normal file
33
docker-compose.yml
Normal 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
|
Loading…
Reference in New Issue
Block a user