32 lines
975 B
YAML
32 lines
975 B
YAML
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}
|