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' image: 'chewingbever/site:latest'
deploy: deploy:
mode: 'global' mode: 'replicated'
replicas: 1
placement:
constraints:
- 'node.labels.class == admin'
labels: labels:
- 'traefik.enable=true' - 'traefik.enable=true'
- 'traefik.http.routers.rb-web.rule=Host(`rustybever.be`) || Host(`www.rustybever.be`)' - '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=true'
- 'traefik.http.routers.rb-web.tls.certresolver=letsEncrypt' - 'traefik.http.routers.rb-web.tls.certresolver=letsEncrypt'
- 'traefik.http.services.rb-web.loadbalancer.server.port=80' - 'traefik.http.services.rb-web.loadbalancer.server.port=3000'
update_config:
parallelism: 1
delay: '5s'
order: 'start-first'
networks: networks:
- 'public' - 'public'
volumes:
- 'data:/data'
networks: networks:
public: public:
external: true external: true
volumes:
data: