docker-compose/woodpecker/docker-compose.yml

31 lines
1.0 KiB
YAML
Raw Permalink 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_ORGS=${WOODPECKER_ORGS}
- WOODPECKER_ADMIN=${WOODPECKER_ADMIN}
2022-12-27 03:14:56 +02:00
- 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}