Added extra woodpecker agent
parent
41ce8bd8b5
commit
697923d11e
|
@ -56,7 +56,7 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- 'db-data:/var/lib/postgresql/data'
|
- 'db-data:/var/lib/postgresql/data'
|
||||||
|
|
||||||
agent:
|
agent-1:
|
||||||
image: 'woodpeckerci/woodpecker-agent:latest'
|
image: 'woodpeckerci/woodpecker-agent:latest'
|
||||||
command: agent
|
command: agent
|
||||||
|
|
||||||
|
@ -64,7 +64,23 @@ services:
|
||||||
mode: 'global'
|
mode: 'global'
|
||||||
placement:
|
placement:
|
||||||
constraints:
|
constraints:
|
||||||
- 'node.labels.class.ci==true'
|
- 'node.hostname==gamma'
|
||||||
|
|
||||||
|
environment:
|
||||||
|
- 'WOODPECKER_SERVER=app:9000'
|
||||||
|
- 'WOODPECKER_AGENT_SECRET=${WOODPECKER_AGENT_SECRET}'
|
||||||
|
volumes:
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
|
|
||||||
|
agent-2:
|
||||||
|
image: 'woodpeckerci/woodpecker-agent:latest'
|
||||||
|
command: agent
|
||||||
|
|
||||||
|
deploy:
|
||||||
|
mode: 'global'
|
||||||
|
placement:
|
||||||
|
constraints:
|
||||||
|
- 'node.hostname==alpha'
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
- 'WOODPECKER_SERVER=app:9000'
|
- 'WOODPECKER_SERVER=app:9000'
|
||||||
|
|
Loading…
Reference in New Issue