mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-25 19:31:05 +00:00
0e8c17e7e8
* use woodpecker env variable instead of drone * update docker-compose version to 3 Co-authored-by: Kevin <kevin@example.com> Co-authored-by: Anbraten <anton@ju60.de>
31 lines
859 B
YAML
31 lines
859 B
YAML
version: '3'
|
|
|
|
services:
|
|
woodpecker-server:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
image: woodpeckerci/woodpecker-server:local
|
|
ports:
|
|
- 8000:8000
|
|
volumes:
|
|
- /var/lib/drone:/var/lib/drone/
|
|
environment:
|
|
- WOODPECKER_OPEN=true
|
|
- WOODPECKER_ADMIN=laszlocph
|
|
- WOODPECKER_HOST=${HOST}
|
|
- WOODPECKER_GITHUB=true
|
|
- WOODPECKER_GITHUB_CLIENT=${GITHUB_CLIENT}
|
|
- WOODPECKER_GITHUB_SECRET=${GITHUB_SECRET}
|
|
- WOODPECKER_SECRET=${WOODPECKER_SECRET}
|
|
woodpecker-agent:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile.agent
|
|
image: woodpeckerci/woodpecker-agent:local
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
environment:
|
|
- WOODPECKER_SERVER=woodpecker-server:9000
|
|
- WOODPECKER_SECRET=${WOODPECKER_SECRET}
|
|
- WOODPECKER_MAX_PROCS=2
|