woodpecker/docker-compose.example.yml
Kevin 0e8c17e7e8
Use woodpecker env variable instead of drone in docker-compose (#264)
* 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>
2021-08-17 21:16:03 +02:00

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