1
0
forked from erp-dev/erp
Files
erpnew/docker-compose-woodpecker-fixed.yml
2025-11-14 17:42:32 +08:00

49 lines
1.4 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
version: '3'
services:
wood-server:
image: woodpeckerci/woodpecker-server:latest
container_name: wood-server
restart: always
ports:
- "55660:8000" # HTTP/Web UI: 宿主机55660映射到容器8000
# 9000端口不需要暴露仅容器内部通信
volumes:
- wood-server-data:/var/lib/woodpecker/
environment:
# Gitea 配置
- WOODPECKER_GITEA=true
- WOODPECKER_GITEA_URL=http://8.148.215.233:5000
- WOODPECKER_GITEA_CLIENT=7f99583a-e440-46d0-b999-e6289663d523
- WOODPECKER_GITEA_SECRET=gto_jgmvrx3bevjhihhqplgsglptpqxetbhsdwh2ye4uko7idtuwkfsa
# Woodpecker 服务器配置
- WOODPECKER_HOST=http://8.148.215.233:55660
- WOODPECKER_AGENT_SECRET=hacking9527
# Webhook 配置(修复 400 错误)
- WOODPECKER_WEBHOOK_SECRET=hacking9527
# 管理员设置使用Gitea用户名不是邮箱
- WOODPECKER_ADMIN=colaftc
# 日志级别
- WOODPECKER_LOG_LEVEL=info
wood-agent:
image: woodpeckerci/woodpecker-agent:latest
container_name: wood-agent
restart: always
depends_on:
- wood-server
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
- WOODPECKER_SERVER=wood-server:9000 # 修复:使用正确的容器名
- WOODPECKER_AGENT_SECRET=hacking9527
- WOODPECKER_MAX_WORKFLOWS=2
- WOODPECKER_LOG_LEVEL=info
volumes:
wood-server-data: