From 1b7de37101cd9b02180eb075775c903656ce5983 Mon Sep 17 00:00:00 2001 From: Pim Kunis Date: Mon, 22 May 2023 22:26:25 +0200 Subject: [PATCH] add static service for concourse --- ansible/inventory/host_vars/manager.yml | 1 - ansible/roles/traefik/docker-stack.yml.j2 | 6 ++++++ ansible/roles/traefik/services.yml | 4 ++++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ansible/inventory/host_vars/manager.yml b/ansible/inventory/host_vars/manager.yml index c35ee9d..1d3628d 100644 --- a/ansible/inventory/host_vars/manager.yml +++ b/ansible/inventory/host_vars/manager.yml @@ -22,4 +22,3 @@ docker_node_labels: seafile: "true" freshrss: "true" pihole: "true" - concourse: "true" diff --git a/ansible/roles/traefik/docker-stack.yml.j2 b/ansible/roles/traefik/docker-stack.yml.j2 index f20b453..ed0bec3 100644 --- a/ansible/roles/traefik/docker-stack.yml.j2 +++ b/ansible/roles/traefik/docker-stack.yml.j2 @@ -62,6 +62,12 @@ services: - traefik.http.routers.apprise.service=apprise@file - traefik.http.routers.apprise.tls=true - traefik.http.routers.apprise.tls.certresolver=letsencrypt + + - traefik.http.routers.concourse.entrypoints=localsecure + - traefik.http.routers.concourse.rule=Host(`concourse.pim.kunis.nl`) + - traefik.http.routers.concourse.service=concourse@file + - traefik.http.routers.concourse.tls=true + - traefik.http.routers.concourse.tls.certresolver=letsencrypt volumes: - type: bind source: /var/run/docker.sock diff --git a/ansible/roles/traefik/services.yml b/ansible/roles/traefik/services.yml index cfd71a6..9e5906f 100644 --- a/ansible/roles/traefik/services.yml +++ b/ansible/roles/traefik/services.yml @@ -20,3 +20,7 @@ http: loadBalancer: servers: - url: http://iris.dmz:3003 + concourse: + loadBalancer: + servers: + - url: http://concourse.dmz:3000