docker-compose/woodpecker/docker-compose.yml

29 lines
980 B
YAML
Raw Normal View History

2022-12-27 03:14:56 +02:00
version: '3.8'
services:
woodpecker-server:
image: woodpeckerci/woodpecker-server:latest-alpine
container_name: woodpecker-server
ports:
- 8000:8000
volumes:
- /var/lib/docker/volumes/woodpecker-server-data:/var/lib/woodpecker/
environment:
- WOODPECKER_OPEN=${WOODPECKER_OPEN}
- WOODPECKER_HOST=${WOODPECKER_HOST}
- WOODPECKER_GITEA=${WOODPECKER_GITEA}
- WOODPECKER_GITEA_URL=${WOODPECKER_GITEA_URL}
- WOODPECKER_GITEA_CLIENT=${WOODPECKER_GITEA_CLIENT}
- WOODPECKER_GITEA_SECRET=${WOODPECKER_GITEA_SECRET}
- WOODPECKER_AGENT_SECRET=${WOODPECKER_AGENT_SECRET}
woodpecker-agent:
image: woodpeckerci/woodpecker-agent:latest-alpine
command: agent
restart: always
depends_on:
- woodpecker-server
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
2022-12-27 03:18:45 +02:00
- WOODPECKER_SERVER=woodpecker-server:9000
2022-12-27 03:14:56 +02:00
- WOODPECKER_AGENT_SECRET=${WOODPECKER_AGENT_SECRET}