Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use woodpecker env variable instead of drone in docker-compose #264

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions docker-compose.example.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '2'
version: '3'

services:
drone-server:
woodpecker-server:
build:
context: .
dockerfile: Dockerfile
Expand All @@ -11,21 +11,21 @@ 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
image: woodpeckerci/woodpecker-agent:local
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