From 5512cb1f6f3c457c39aa3c1e53eb9297c40ddee1 Mon Sep 17 00:00:00 2001 From: Jef Roosens Date: Tue, 1 Feb 2022 22:29:11 +0100 Subject: [PATCH] Added vieter stack --- stacks/vieter.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 stacks/vieter.yml diff --git a/stacks/vieter.yml b/stacks/vieter.yml new file mode 100644 index 0000000..44537ee --- /dev/null +++ b/stacks/vieter.yml @@ -0,0 +1,33 @@ +version: '3' + +services: + app: + image: 'chewingbever/vieter:dev' + + deploy: + mode: 'replicated' + replicas: 1 + placement: + constraints: + - 'node.labels.class==admin' + labels: + - 'traefik.enable=true' + - 'traefik.http.routers.pieter.rule=Host(`arch.r8r.be`)' + - 'traefik.http.routers.pieter.tls=true' + - 'traefik.http.routers.pieter.tls.certresolver=letsEncrypt' + - 'traefik.http.services.pieter.loadbalancer.server.port=8000' + + environment: + - 'API_KEY' + networks: + - 'public' + volumes: + - 'data:/data' + +networks: + public: + external: true + +volumes: + data: +