deployment/stacks/vieter.yml

69 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'
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-02-22 08:27:00 +01:00
cron:
2022-11-07 22:33:41 +01:00
image: 'chewingbever/vieter:dev'
command: vieter cron
2022-02-22 13:49:58 +01:00
user: root
healthcheck:
disable: true
2022-02-22 08:27:00 +01:00
deploy:
mode: 'replicated'
replicas: 1
placement:
constraints:
2022-09-13 18:50:07 +02:00
- 'node.hostname==epsilon'
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'
2022-11-01 20:34:35 +01:00
- 'VIETER_BASE_IMAGE=git.rustybever.be/vieter-v/vieter-builder:latest'
2022-05-03 21:36:00 +02:00
# 1AM UTC+2
- 'VIETER_GLOBAL_SCHEDULE=0 23'
2022-02-22 08:27:00 +01:00
secrets:
- vieter_api_key
2022-02-22 10:25:39 +01:00
volumes:
- '/var/run/docker.sock:/var/run/docker.sock'
2022-02-22 08:27:00 +01:00
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: