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: services:
drone-server: woodpecker-server:
build: build:
context: . context: .
dockerfile: Dockerfile dockerfile: Dockerfile
@ -11,14 +11,14 @@ services:
volumes: volumes:
- /var/lib/drone:/var/lib/drone/ - /var/lib/drone:/var/lib/drone/
environment: environment:
- DRONE_OPEN=true - WOODPECKER_OPEN=true
- DRONE_ADMIN=laszlocph - WOODPECKER_ADMIN=laszlocph
- DRONE_HOST=${HOST} - WOODPECKER_HOST=${HOST}
- DRONE_GITHUB=true - WOODPECKER_GITHUB=true
- DRONE_GITHUB_CLIENT=${GITHUB_CLIENT} - WOODPECKER_GITHUB_CLIENT=${GITHUB_CLIENT}
- DRONE_GITHUB_SECRET=${GITHUB_SECRET} - WOODPECKER_GITHUB_SECRET=${GITHUB_SECRET}
- DRONE_SECRET=${DRONE_SECRET} - WOODPECKER_SECRET=${WOODPECKER_SECRET}
drone-agent: woodpecker-agent:
build: build:
context: . context: .
dockerfile: Dockerfile.agent dockerfile: Dockerfile.agent
@ -26,6 +26,6 @@ services:
volumes: volumes:
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
environment: environment:
- DRONE_SERVER=drone-server:9000 - WOODPECKER_SERVER=woodpecker-server:9000
- DRONE_SECRET=${DRONE_SECRET} - WOODPECKER_SECRET=${WOODPECKER_SECRET}
- DRONE_MAX_PROCS=2 - WOODPECKER_MAX_PROCS=2