diff --git a/stacks/woodpecker.yml b/stacks/woodpecker.yml index 4f4d527..4ada1b8 100644 --- a/stacks/woodpecker.yml +++ b/stacks/woodpecker.yml @@ -56,7 +56,7 @@ services: volumes: - 'db-data:/var/lib/postgresql/data' - agent: + agent-1: image: 'woodpeckerci/woodpecker-agent:latest' command: agent @@ -64,7 +64,23 @@ services: mode: 'global' placement: 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: - 'WOODPECKER_SERVER=app:9000'