我试图用traefik作为前端来调出graylog。但是我要用404来查看grayloggui,我也看不到kibana页面。不确定什么是不正确的。使用graylog/traefik标签。这里是docker compose文件,包含所有服务描述。
特拉菲克:
traefik:
image: traefik:v2.3.1
restart: always
container_name: traefik
ports:
- "80:80"
- "8080:8080"
- "443:443"
command:
- --api.insecure=true
- --api.dashboard=true
- --api.debug=true
- --log.level=DEBUG
- --providers.docker=true
- --providers.docker.exposedbydefault=false
- --providers.file.filename=/dynamic.yaml
- --providers.docker.network=frontend
- --entrypoints.frontend.address=:80
- --entrypoints.compose_frontend.address=:443
- --certificatesresolvers.mytlschallenge.acme.tlschallenge=true
- --certificatesresolvers.mytlschallenge.acme.email=mihirm@example.com
- --certificatesresolvers.mytlschallenge.acme.storage=/letsencrypt/acme.json
volumes:
- ./letsencrypt:/letsencrypt # <== Volume for certs (TLS)
- "/var/run/docker.sock:/var/run/docker.sock"
- ./dynamic.yaml:/dynamic.yaml # <== Volume for dynamic conf file,**ref: line 27
networks:
frontend:
格雷洛格:
graylog2:
image: graylog/graylog:3.3.6
container_name: graylog2
restart: always
env_file:
- ./graylog2.env
labels:
- "traefik.enable=true" # <== Enable traefik to proxy this container
- "traefik.backend=graylog2"
- "traefik.docker.network=frontend"
- "traefik.port=9000"
- "traefik.http.routers.frontend.entryPoints=frontend"
- "traefik.http.routers.frontend.middlewares=redirect@file"
- "traefik.http.routers.frontend.rule=Host(`graylog.localhost)"
- "traefik.http.routers.compose_frontend.rule=Host(`graylog.localhost`)"
- "traefik.http.routers.compose_frontend.entrypoints=compose_frontend"
- "traefik.http.routers.compose_frontend.tls.certresolver=mytlschallenge"
ports:
- "12201:12201/udp"
- "12201:12201"
- "1514:1514/udp"
- "1514:1514"
links:
- graylog2_mongo:mongo
- graylog2_elasticsearch:elasticsearch
volumes:
- "graylog2_graylog2-data:/usr/share/graylog/data/journal"
- "graylog2_graylog2-config:/usr/share/graylog/data/config"
networks:
frontend:
backend_graylog2:
以下是整个docker compose文件:https://pastebin.com/grw2cavf
Jmeter 板正在工作,但我无法查看graylog gui或kibana gui。不知道怎么了
暂无答案!
目前还没有任何答案,快来回答吧!