mirror of
https://github.com/krislamo/graylog_demo
synced 2025-01-05 13:20:36 +00:00
Route Graylog UI through Traefik
This commit is contained in:
parent
590f0a53ab
commit
84bf4e862a
13
graylog.yml
13
graylog.yml
@ -5,6 +5,8 @@ services:
|
|||||||
traefik:
|
traefik:
|
||||||
image: traefik:2.1.4
|
image: traefik:2.1.4
|
||||||
restart: always
|
restart: always
|
||||||
|
networks:
|
||||||
|
- traefik-net
|
||||||
ports:
|
ports:
|
||||||
- 8080:80
|
- 8080:80
|
||||||
command:
|
command:
|
||||||
@ -12,12 +14,13 @@ services:
|
|||||||
- "--providers.docker.exposedbydefault=false"
|
- "--providers.docker.exposedbydefault=false"
|
||||||
- "--entrypoints.web.address=:80"
|
- "--entrypoints.web.address=:80"
|
||||||
- "--api.dashboard=true"
|
- "--api.dashboard=true"
|
||||||
|
- "--log.level=DEBUG"
|
||||||
labels:
|
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.middlewares.auth.basicauth.users=admin:$$apr1$$T1l.BCFz$$Jyg8msXYEAUi3LLH39I9d1'
|
||||||
- "traefik.http.routers.traefik.middlewares=auth@docker"
|
- "traefik.http.routers.traefik.middlewares=auth@docker"
|
||||||
- "traefik.http.routers.traefik.service=api@internal"
|
- "traefik.http.routers.traefik.service=api@internal"
|
||||||
- "traefik.docker.network=proxy_traefik-net"
|
- "traefik.docker.network=vagrant_traefik-net"
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||||
@ -63,8 +66,14 @@ services:
|
|||||||
# Password: admin
|
# Password: admin
|
||||||
- GRAYLOG_ROOT_PASSWORD_SHA2=8c6976e5b5410415bde908bd4dee15dfb167a9c873fc4bb8a81f6f2ab448a918
|
- GRAYLOG_ROOT_PASSWORD_SHA2=8c6976e5b5410415bde908bd4dee15dfb167a9c873fc4bb8a81f6f2ab448a918
|
||||||
- GRAYLOG_HTTP_EXTERNAL_URI=http://172.28.128.30:9000/
|
- 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:
|
networks:
|
||||||
- graylog
|
- graylog
|
||||||
|
- traefik-net
|
||||||
depends_on:
|
depends_on:
|
||||||
- mongo
|
- mongo
|
||||||
- elasticsearch
|
- elasticsearch
|
||||||
|
Loading…
Reference in New Issue
Block a user