woodpecker-ci-deployment/compose.yml

40 lines
1,002 B
YAML
Raw Permalink Normal View History

2024-11-14 11:14:34 +01:00
services:
woodpecker-server:
image: woodpeckerci/woodpecker-server:latest
container_name: woodpecker-server
restart: unless-stopped
volumes:
- ./server-data:/var/lib/woodpecker/
environment:
- WOODPECKER_OPEN=false
- WOODPECKER_HOST=${WOODPECKER_HOST}
- WOODPECKER_AGENT_SECRET=${WOODPECKER_AGENT_SECRET}
env_file:
- .env
networks:
- nginx-reverse-proxy_proxy
- woodpecker
woodpecker-agent:
image: woodpeckerci/woodpecker-agent:latest
container_name: woodpecker-agent
command: agent
restart: unless-stopped
depends_on:
- woodpecker-server
volumes:
- ./agent-config:/etc/woodpecker
- /var/run/docker.sock:/var/run/docker.sock
env_file:
- .env
environment:
- WOODPECKER_SERVER=woodpecker-server:9000
- WOODPECKER_AGENT_SECRET=${WOODPECKER_AGENT_SECRET}
networks:
- woodpecker
networks:
nginx-reverse-proxy_proxy:
external: true
woodpecker: