deployment/stacks/site.yml

38 lines
756 B
YAML

version: '3.4'
services:
web:
image: 'chewingbever/site:latest'
deploy:
mode: 'replicated'
replicas: 1
placement:
constraints:
- 'node.labels.class == admin'
labels:
- 'traefik.enable=true'
- 'traefik.http.routers.rb-web.rule=Host(`rustybever.be`) || Host(`www.rustybever.be`)'
- 'traefik.http.routers.rb-web.tls=true'
- 'traefik.http.routers.rb-web.tls.certresolver=letsEncrypt'
- 'traefik.http.services.rb-web.loadbalancer.server.port=3000'
environment:
- 'API_KEY'
networks:
- 'public'
- 'monitoring'
volumes:
- 'data:/data'
networks:
public:
external: true
monitoring:
external: true
volumes:
data: