From 6aed036813e53f2921401614e7d7809e100bc1a8 Mon Sep 17 00:00:00 2001 From: Jef Roosens Date: Tue, 29 Mar 2022 16:34:59 +0200 Subject: [PATCH] Added site stack --- stacks/site.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 stacks/site.yml diff --git a/stacks/site.yml b/stacks/site.yml new file mode 100644 index 0000000..eb9d842 --- /dev/null +++ b/stacks/site.yml @@ -0,0 +1,21 @@ +version: '3.4' + +services: + web: + image: 'chewingbever/site:latest' + + deploy: + mode: 'global' + 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' + + networks: + - 'public' + +networks: + public: + external: true