Updated site config

master
Jef Roosens 2022-04-02 14:01:21 +02:00
parent f0236015db
commit cb63a9a4ea
Signed by: Jef Roosens
GPG Key ID: B75D4F293C7052DB
1 changed files with 13 additions and 6 deletions

View File

@ -5,21 +5,28 @@ services:
image: 'chewingbever/site:latest'
deploy:
mode: 'global'
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=80'
update_config:
parallelism: 1
delay: '5s'
order: 'start-first'
- 'traefik.http.services.rb-web.loadbalancer.server.port=3000'
networks:
- 'public'
volumes:
- 'data:/data'
networks:
public:
external: true
volumes:
data: