mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-25 11:21:02 +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:
|
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
|
||||||
|
|
Loading…
Reference in a new issue