wooposex/agent.yaml

33 lines
975 B
YAML
Raw Normal View History

2024-10-09 22:19:13 +02:00
services:
woodpecker-agent-docker:
image: woodpeckerci/woodpecker-agent:latest
command: agent
restart: unless-stopped
depends_on:
woodpecker-server:
condition: service_healthy
network_mode: none
volumes:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
- docker-run:/var/run/dind
environment:
DOCKER_HOST: 'unix:///var/run/dind/docker.sock'
WOODPECKER_SERVER: 'woodpecker-server:9000'
WOODPECKER_AGENT_SECRET: ${WOODPECKER_AGENT_SECRET}
woodpecker-agent-shell:
image: woodpeckerci/woodpecker-agent:latest
command: agent
restart: unless-stopped
depends_on:
woodpecker-server:
condition: service_healthy
volumes:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
network_mode: none
environment:
WOODPECKER_SERVER: 'woodpecker-server:9000'
WOODPECKER_AGENT_SECRET: ${WOODPECKER_AGENT_SECRET}