vieter: deploy agents globally

master
Jef Roosens 2022-12-16 16:14:05 +01:00
parent 7d3c4cb6e5
commit 474754f18d
Signed by: Jef Roosens
GPG Key ID: B75D4F293C7052DB
1 changed files with 2 additions and 32 deletions

View File

@ -31,7 +31,7 @@ services:
volumes:
- 'data:/data'
agent-1:
agent:
image: 'chewingbever/vieter:dev'
command: vieter agent
user: root
@ -40,11 +40,7 @@ services:
disable: true
deploy:
mode: 'replicated'
replicas: 1
placement:
constraints:
- 'node.hostname==epsilon'
mode: 'global'
environment:
- 'VIETER_API_KEY_FILE=/run/secrets/vieter_api_key'
@ -57,32 +53,6 @@ services:
volumes:
- '/var/run/docker.sock:/var/run/docker.sock'
agent-2:
image: 'chewingbever/vieter:dev'
command: vieter agent
user: root
healthcheck:
disable: true
deploy:
mode: 'replicated'
replicas: 1
placement:
constraints:
- 'node.hostname==gamma'
environment:
- 'VIETER_API_KEY_FILE=/run/secrets/vieter_api_key'
- 'VIETER_LOG_LEVEL=DEBUG'
- 'VIETER_ADDRESS=https://arch.r8r.be'
- 'VIETER_MAX_CONCURRENT_BUILDS=1'
- 'VIETER_ARCH=x86_64'
secrets:
- vieter_api_key
volumes:
- '/var/run/docker.sock:/var/run/docker.sock'
networks:
public:
external: true