mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-25 11:21:02 +00:00
Local test helper
This commit is contained in:
parent
5dc9f7dc83
commit
9ede43b0ec
1 changed files with 31 additions and 0 deletions
31
docker-compose.yml
Normal file
31
docker-compose.yml
Normal file
|
@ -0,0 +1,31 @@
|
|||
version: '2'
|
||||
|
||||
services:
|
||||
drone-server:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
image: laszlocloud/drone-oss-08-server:local
|
||||
ports:
|
||||
- 8000:8000
|
||||
volumes:
|
||||
- /var/lib/drone:/var/lib/drone/
|
||||
environment:
|
||||
- DRONE_OPEN=true
|
||||
- DRONE_ADMIN=laszlocph
|
||||
- DRONE_HOST=${HOST}
|
||||
- DRONE_GITHUB=true
|
||||
- DRONE_GITHUB_CLIENT=${GITHUB_CLIENT}
|
||||
- DRONE_GITHUB_SECRET=${GITHUB_SECRET}
|
||||
- DRONE_SECRET=${DRONE_SECRET}
|
||||
drone-agent:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile.agent
|
||||
image: laszlocloud/drone-oss-08-agent:local
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
environment:
|
||||
- DRONE_SERVER=drone-server:9000
|
||||
- DRONE_SECRET=${DRONE_SECRET}
|
||||
- DRONE_MAX_PROCS=1
|
Loading…
Reference in a new issue