docker/woodpecker/compose.yaml
2023-12-24 11:09:47 +01:00

56 lines
1.1 KiB
YAML

---
services:
install_site:
build: install_site
environment:
- BASE_URL
- EMAIL
volumes:
- ./nginx.conf:/web/woodpecker.conf
- sites:/sites/
- certs:/etc/letsencrypt/
- certbotroot:/var/www/certbot/
- /var/run/docker.sock:/var/run/docker.sock
server:
image: docker.io/woodpeckerci/woodpecker-server:v2.0.0
restart: unless-stopped
volumes:
- server-data:/var/lib/woodpecker/
environment:
- WOODPECKER_OPEN=true
- WOODPECKER_HOST=$BASE_URL
- WOODPECKER_GITEA=true
- WOODPECKER_AGENT_SECRET
networks:
- nginx
- default
agent:
image: docker.io/woodpeckerci/woodpecker-agent:v2.0.0
restart: unless-stopped
command: agent
volumes:
- agent-config:/etc/woodpecker
- /var/run/docker.sock:/var/run/docker.sock
environment:
- WOODPECKER_SERVER=server:9000
- WOODPECKER_AGENT_SECRET
depends_on:
- server
volumes:
server-data:
agent-config:
sites:
external: true
certs:
external: true
certbotroot:
external: true
networks:
nginx:
external: true