deployment/stacks/vieter.yml

66 lines
1.5 KiB
YAML
Raw Normal View History

2022-02-22 08:27:00 +01:00
version: '3.4'
2022-02-01 22:29:11 +01:00
services:
app:
2022-11-07 22:33:41 +01:00
image: 'chewingbever/vieter:dev'
2022-02-01 22:29:11 +01:00
deploy:
mode: 'replicated'
replicas: 1
placement:
constraints:
2022-10-29 09:42:58 +02:00
- 'node.labels.class.vieter==true'
2022-02-01 22:29:11 +01:00
labels:
- 'traefik.enable=true'
2022-02-01 22:33:01 +01:00
- 'traefik.http.routers.vieter.rule=Host(`arch.r8r.be`)'
- 'traefik.http.routers.vieter.tls=true'
- 'traefik.http.routers.vieter.tls.certresolver=letsEncrypt'
- 'traefik.http.services.vieter.loadbalancer.server.port=8000'
2022-02-01 22:29:11 +01:00
environment:
2022-02-22 08:27:00 +01:00
- 'VIETER_API_KEY_FILE=/run/secrets/vieter_api_key'
- 'VIETER_LOG_LEVEL=DEBUG'
2022-04-07 16:19:12 +02:00
- 'VIETER_DEFAULT_ARCH=x86_64'
- 'VIETER_BASE_IMAGE=git.rustybever.be/vieter-v/vieter-builder:latest'
# 1AM UTC+2
- 'VIETER_GLOBAL_SCHEDULE=0 23'
2022-02-01 22:29:11 +01:00
networks:
- 'public'
2022-02-22 08:27:00 +01:00
secrets:
- vieter_api_key
2022-02-01 22:29:11 +01:00
volumes:
- 'data:/data'
2022-12-16 16:14:05 +01:00
agent:
2022-11-07 22:33:41 +01:00
image: 'chewingbever/vieter:dev'
command: vieter agent
2022-02-22 13:49:58 +01:00
user: root
healthcheck:
disable: true
2022-02-22 08:27:00 +01:00
deploy:
2022-12-16 16:14:05 +01:00
mode: 'global'
2022-02-22 08:27:00 +01:00
environment:
- 'VIETER_API_KEY_FILE=/run/secrets/vieter_api_key'
- 'VIETER_LOG_LEVEL=DEBUG'
- 'VIETER_ADDRESS=https://arch.r8r.be'
- 'VIETER_MAX_CONCURRENT_BUILDS=2'
- 'VIETER_ARCH=x86_64'
secrets:
- vieter_api_key
volumes:
- '/var/run/docker.sock:/var/run/docker.sock'
2022-02-01 22:29:11 +01:00
networks:
public:
external: true
2022-02-22 08:27:00 +01:00
secrets:
vieter_api_key:
external: true
2022-02-01 22:29:11 +01:00
volumes:
data: