configs/docker-compose/woodpecker.yaml

39 lines
1.1 KiB
YAML
Raw Permalink Normal View History

2022-10-25 06:00:00 +00:00
version: '3'
services:
woodpecker-server:
image: woodpeckerci/woodpecker-server:latest
ports:
- 8000:8000
2022-10-25 07:04:41 +00:00
- 8001:80
- 8002:443
2022-10-25 06:00:00 +00:00
volumes:
- woodpecker-server-data:/var/lib/woodpecker/
2022-10-25 06:50:41 +00:00
- ${WOODPECKER_SSL_CRT}:${WOODPECKER_SSL_CRT}
- ${WOODPECKER_SSL_KEY}:${WOODPECKER_SSL_KEY}
2022-10-25 06:00:00 +00:00
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}
2022-10-25 06:50:41 +00:00
- WOODPECKER_SERVER_CERT=${WOODPECKER_SSL_CRT}
- WOODPECKER_SERVER_KEY=${WOODPECKER_SSL_KEY}
2022-10-25 06:00:00 +00:00
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: