From cb63a9a4ea13a8b5b2e81771adc4507ea6794086 Mon Sep 17 00:00:00 2001 From: Jef Roosens Date: Sat, 2 Apr 2022 14:01:21 +0200 Subject: [PATCH] Updated site config --- stacks/site.yml | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/stacks/site.yml b/stacks/site.yml index 59502bc..9f2fbf3 100644 --- a/stacks/site.yml +++ b/stacks/site.yml @@ -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: