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'
|
2023-02-27 08:38:03 +01:00
|
|
|
- 'VIETER_BASE_IMAGE=ghcr.io/menci/archlinuxarm:base-devel'
|
2022-12-14 17:30:51 +01:00
|
|
|
# 1AM UTC+2
|
|
|
|
- 'VIETER_GLOBAL_SCHEDULE=0 23'
|
2022-12-19 12:17:53 +01:00
|
|
|
- 'VIETER_MAX_LOG_AGE=120'
|
2023-01-03 22:10:21 +01:00
|
|
|
- 'VIETER_COLLECT_METRICS=1'
|
2022-02-01 22:29:11 +01:00
|
|
|
networks:
|
|
|
|
- 'public'
|
2023-01-03 22:10:21 +01:00
|
|
|
- 'monitoring'
|
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'
|
2022-12-14 17:30:51 +01:00
|
|
|
command: vieter agent
|
2022-02-22 13:49:58 +01:00
|
|
|
user: root
|
2022-02-22 10:23:55 +01:00
|
|
|
|
|
|
|
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'
|
2022-12-17 13:55:16 +01:00
|
|
|
- 'VIETER_LOG_LEVEL=INFO'
|
2022-02-22 08:27:00 +01:00
|
|
|
- 'VIETER_ADDRESS=https://arch.r8r.be'
|
2022-04-30 22:26:42 +02:00
|
|
|
- 'VIETER_MAX_CONCURRENT_BUILDS=2'
|
2022-12-14 17:30:51 +01:00
|
|
|
- 'VIETER_ARCH=x86_64'
|
2022-12-16 21:08:41 +01:00
|
|
|
# Poll for builds every two minutes
|
|
|
|
- 'VIETER_POLLING_FREQUENCY=120'
|
2022-12-14 17:30:51 +01:00
|
|
|
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
|
2023-01-03 22:10:21 +01:00
|
|
|
monitoring:
|
|
|
|
external: true
|
2022-02-01 22:29:11 +01:00
|
|
|
|
2022-02-22 08:27:00 +01:00
|
|
|
secrets:
|
|
|
|
vieter_api_key:
|
|
|
|
external: true
|
|
|
|
|
2022-02-01 22:29:11 +01:00
|
|
|
volumes:
|
|
|
|
data:
|