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>
This commit is contained in:
Kevin 2021-08-18 03:16:03 +08:00 committed by GitHub
parent 29ab3543cb
commit 0e8c17e7e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,7 +1,7 @@
version: '2'
version: '3'
services:
drone-server:
woodpecker-server:
build:
context: .
dockerfile: Dockerfile
@ -11,14 +11,14 @@ services:
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:
- 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
@ -26,6 +26,6 @@ services:
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
- DRONE_SERVER=drone-server:9000
- DRONE_SECRET=${DRONE_SECRET}
- DRONE_MAX_PROCS=2
- WOODPECKER_SERVER=woodpecker-server:9000
- WOODPECKER_SECRET=${WOODPECKER_SECRET}
- WOODPECKER_MAX_PROCS=2