deployment/stacks/vieter.yml

35 lines
689 B
YAML

version: '3'
services:
app:
image: 'chewingbever/vieter:dev'
deploy:
mode: 'replicated'
replicas: 1
placement:
constraints:
- 'node.labels.class==admin'
labels:
- 'traefik.enable=true'
- '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'
environment:
- 'API_KEY'
- 'LOG_LEVEL=DEBUG'
networks:
- 'public'
volumes:
- 'data:/data'
networks:
public:
external: true
volumes:
data: