configs/docker-compose/woodpecker.yaml

39 lines
No EOL
1.1 KiB
YAML

version: '3'
services:
woodpecker-server:
image: woodpeckerci/woodpecker-server:latest
ports:
- 8000:8000
- 8001:80
- 8002:443
volumes:
- woodpecker-server-data:/var/lib/woodpecker/
- ${WOODPECKER_SSL_CRT}:${WOODPECKER_SSL_CRT}
- ${WOODPECKER_SSL_KEY}:${WOODPECKER_SSL_KEY}
environment:
- WOODPECKER_OPEN=true
- WOODPECKER_HOST=${WOODPECKER_HOST}
- WOODPECKER_GITEA=true
- 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_SERVER_CERT=${WOODPECKER_SSL_CRT}
- WOODPECKER_SERVER_KEY=${WOODPECKER_SSL_KEY}
woodpecker-agent:
image: woodpeckerci/woodpecker-agent:latest
command: agent
restart: always
depends_on:
- woodpecker-server
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
- WOODPECKER_SERVER=woodpecker-server:9000
- WOODPECKER_AGENT_SECRET=${WOODPECKER_AGENT_SECRET}
volumes:
woodpecker-server-data: