vieter: deploy agents globally
parent
7d3c4cb6e5
commit
474754f18d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue