diff --git a/ansible/roles/inbucket/docker-stack.yml.j2 b/ansible/roles/inbucket/docker-stack.yml.j2 index 54a57ee..6e400da 100644 --- a/ansible/roles/inbucket/docker-stack.yml.j2 +++ b/ansible/roles/inbucket/docker-stack.yml.j2 @@ -1,13 +1,27 @@ # vi: ft=yaml version: "3.7" +networks: + traefik: + external: true + services: kms-server: image: inbucket/inbucket + networks: + - traefik ports: - 2500:2500 - - 9000:9000 deploy: placement: constraints: - "node.labels.public == true" + labels: + - traefik.enable=true + - traefik.http.routers.inbucket.entrypoints=localsecure + - traefik.http.routers.inbucket.rule=Host(`inbucket.geokunis2.nl`) + - traefik.http.routers.inbucket.service=inbucket + - traefik.http.routers.inbucket.tls=true + - traefik.http.routers.inbucket.tls.certresolver=letsencrypt + - traefik.docker.network=traefik + - traefik.http.services.inbucket.loadbalancer.server.port=9000 diff --git a/ansible/roles/overleaf/docker-stack.yml.j2 b/ansible/roles/overleaf/docker-stack.yml.j2 index 7a381e5..293cb04 100644 --- a/ansible/roles/overleaf/docker-stack.yml.j2 +++ b/ansible/roles/overleaf/docker-stack.yml.j2 @@ -29,7 +29,7 @@ services: - traefik.http.routers.overleaf.rule=Host(`latex.pim.kunis.nl`) - traefik.http.routers.overleaf.tls=true - traefik.http.routers.overleaf.tls.certresolver=letsencrypt - - treafik.http.routers.overleaf.service=overleaf + - traefik.http.routers.overleaf.service=overleaf - traefik.http.services.overleaf.loadbalancer.server.port=80 - traefik.docker.network=traefik environment: diff --git a/ansible/roles/syncthing/docker-stack.yml.j2 b/ansible/roles/syncthing/docker-stack.yml.j2 index e9c9c46..fcf45c7 100644 --- a/ansible/roles/syncthing/docker-stack.yml.j2 +++ b/ansible/roles/syncthing/docker-stack.yml.j2 @@ -29,7 +29,7 @@ services: - traefik.http.routers.syncthing.service=syncthing - traefik.http.routers.syncthing.tls=true - traefik.http.routers.syncthing.tls.certresolver=letsencrypt - - traefik.docker.network=treafik + - traefik.docker.network=traefik - traefik.http.services.syncthing.loadbalancer.server.port=8384 environment: - PUID=1000