deployment/stacks/vieter.yml

64 lines
1.3 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:
image: 'chewingbever/vieter:dev'
deploy:
mode: 'replicated'
replicas: 1
placement:
constraints:
- 'node.labels.class==admin'
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-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:
image: 'chewingbever/vieter:dev'
command: crond -f
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-02-22 13:49:58 +01:00
- 'node.labels.class==gitea'
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'
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: