woodpecker/docker-compose.example.yaml

36 lines
979 B
YAML
Raw Normal View History

version: '3'
2019-05-30 09:11:27 +00:00
services:
woodpecker-server:
image: woodpeckerci/woodpecker-server:latest
2019-05-30 09:11:27 +00:00
ports:
- 8000:8000
networks:
- woodpecker
2019-05-30 09:11:27 +00:00
volumes:
- /var/lib/woodpecker:/var/lib/woodpecker/
2019-05-30 09:11:27 +00:00
environment:
- WOODPECKER_OPEN=true
- WOODPECKER_ADMIN=laszlocph
- WOODPECKER_HOST=${WOODPECKER_HOST}
- WOODPECKER_GITHUB=true
- WOODPECKER_GITHUB_CLIENT=${WOODPECKER_GITHUB_CLIENT}
- WOODPECKER_GITHUB_SECRET=${WOODPECKER_GITHUB_SECRET}
- WOODPECKER_AGENT_SECRET=${WOODPECKER_AGENT_SECRET}
woodpecker-agent:
depends_on:
woodpecker-server:
condition: service_healthy
image: woodpeckerci/woodpecker-agent:latest
networks:
- woodpecker
2019-05-30 09:11:27 +00:00
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
- WOODPECKER_SERVER=woodpecker-server:9000
- WOODPECKER_AGENT_SECRET=${WOODPECKER_AGENT_SECRET}
- WOODPECKER_MAX_WORKFLOWS=2
networks:
woodpecker: