From a46525aa8074b076d9ee123b2c124c7f8dd98b60 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sun, 18 Oct 2020 22:31:23 +0100 Subject: [PATCH] Move configuration for custom port to Traefik config rather than custom container expose Still a work-around for https://github.com/plausible/analytics/pull/237 --- ansible/roles/plausible/files/docker-compose.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ansible/roles/plausible/files/docker-compose.yml b/ansible/roles/plausible/files/docker-compose.yml index a5bb262..ef6f7a1 100644 --- a/ansible/roles/plausible/files/docker-compose.yml +++ b/ansible/roles/plausible/files/docker-compose.yml @@ -8,11 +8,10 @@ services: depends_on: - db - clickhouse - expose: - - 8000 # https://github.com/plausible/analytics/pull/237 labels: - traefik.enable=true - traefik.http.routers.plausible.rule=Host(`plausible.theorangeone.net`) + - traefik.http.services.plausible-plausible.loadbalancer.server.port=8000 # https://github.com/plausible/analytics/pull/237 - traefik.http.routers.plausible.tls.certresolver=le - traefik.http.routers.plausible.middlewares=compress@file environment: