mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-10-31 22:38:49 +00:00
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:
parent
29ab3543cb
commit
0e8c17e7e8
1 changed files with 13 additions and 13 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue