Added extra woodpecker agent

master
Jef Roosens 2022-01-13 14:29:23 +01:00
parent 41ce8bd8b5
commit 697923d11e
Signed by: Jef Roosens
GPG Key ID: 955C0660072F691F
1 changed files with 18 additions and 2 deletions

View File

@ -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'