From 84bf4e862a8be7d0815cee1099435eb0b5a4a66d Mon Sep 17 00:00:00 2001 From: Kris Lamoureux Date: Wed, 12 Feb 2020 16:22:45 -0500 Subject: [PATCH] Route Graylog UI through Traefik --- graylog.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/graylog.yml b/graylog.yml index 68e5a44..9450c49 100644 --- a/graylog.yml +++ b/graylog.yml @@ -5,6 +5,8 @@ services: traefik: image: traefik:2.1.4 restart: always + networks: + - traefik-net ports: - 8080:80 command: @@ -12,12 +14,13 @@ services: - "--providers.docker.exposedbydefault=false" - "--entrypoints.web.address=:80" - "--api.dashboard=true" + - "--log.level=DEBUG" labels: - - "traefik.http.routers.traefik.rule=Host(`172.28.128.30`)" + - "traefik.http.routers.traefik.rule=Host(`traefik.172.28.128.30.xip.io`)" - 'traefik.http.middlewares.auth.basicauth.users=admin:$$apr1$$T1l.BCFz$$Jyg8msXYEAUi3LLH39I9d1' - "traefik.http.routers.traefik.middlewares=auth@docker" - "traefik.http.routers.traefik.service=api@internal" - - "traefik.docker.network=proxy_traefik-net" + - "traefik.docker.network=vagrant_traefik-net" - "traefik.enable=true" volumes: - /var/run/docker.sock:/var/run/docker.sock:ro @@ -63,8 +66,14 @@ services: # Password: admin - GRAYLOG_ROOT_PASSWORD_SHA2=8c6976e5b5410415bde908bd4dee15dfb167a9c873fc4bb8a81f6f2ab448a918 - GRAYLOG_HTTP_EXTERNAL_URI=http://172.28.128.30:9000/ + labels: + - "traefik.http.routers.graylog.rule=Host(`graylog.172.28.128.30.xip.io`)" + - "traefik.http.services.graylog.loadbalancer.server.port=9000" + - "traefik.docker.network=vagrant_traefik-net" + - "traefik.enable=true" networks: - graylog + - traefik-net depends_on: - mongo - elasticsearch