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