Hi,
Trying graylog enterprise using the docker images but the web interface wont work. I can nc or curl to the correct IP but I can see it is trying the docker bind address.
192.168.210.6 is the IP address of the Centos 7 machine I am starting docker on.
#docker-comose.yml
version: '2'
services:
# MongoDB: https://hub.docker.com/_/mongo/
mongo:
image: mongo:3
volumes:
- mongo_data:/data/db
# Elasticsearch: https://www.elastic.co/guide/en/elasticsearch/reference/5.5/docker.html
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:5.6.12
volumes:
- es_data:/usr/share/elasticsearch/data
environment:
- http.host=0.0.0.0
- transport.host=localhost
- network.host=0.0.0.0
# Disable X-Pack security: https://www.elastic.co/guide/en/elasticsearch/reference/5.5/security-settings.html#general-security-settings
- xpack.security.enabled=false
- xpack.watcher.enabled=false
- xpack.monitoring.enabled=false
- xpack.security.audit.enabled=false
- xpack.ml.enabled=false
- xpack.graph.enabled=false
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
mem_limit: 1g
# Graylog: https://hub.docker.com/r/graylog/graylog/
graylog:
image: graylog/graylog:3.0
#network_mode: bridge
volumes:
- /opt/docker/graylog/graylog/data/journal:/usr/share/graylog/data/journal
#- /opt/docker/graylog/graylog/config:/usr/share/graylog/data/config
environment:
- GRAYLOG_WEB_ENDPOINT_URI=http://192.168.210.6:9000/api/
- GRAYLOG_REST_TRANSPORT_URI=http://192.168.210.6:9000
links:
- mongo
- elasticsearch
ports:
# Graylog web interface and REST API
- 9000:9000
# Syslog TCP
- 514:514
# Syslog UDP
- 514:514/udp
# GELF TCP
- 12201:12201
# GELF UDP
- 12201:12201/udp
# Volumes for persisting data, see https://docs.docker.com/engine/admin/volumes/volumes/
volumes:
mongo_data:
driver: local
es_data:
driver: local
graylog_journal:
driver: local
curl -l http://192.168.210.6:9000
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="robots" content="noindex, nofollow">
<meta charset="UTF-8">
<title>Graylog Web Interface</title>
<link rel="shortcut icon" href="http://172.19.0.4:9000/assets/favicon.png">
</head>
<body>
<script src="http://172.19.0.4:9000/config.js"></script>
<script src="http://172.19.0.4:9000/assets/vendor.3a39c01292ce2ef4ffed.js"></script>
<script src="http://172.19.0.4:9000/assets/polyfill.911fcb4337d67c175fec.js"></script>
<script src="http://172.19.0.4:9000/assets/builtins.911fcb4337d67c175fec.js"></script>
<script src="http://172.19.0.4:9000/assets/plugin/org.graylog.plugins.threatintel.ThreatIntelPlugin/plugin.org.graylog.plugins.threatintel.ThreatIntelPlugin.8b790b2249be29b14101.js"></script>
<script src="http://172.19.0.4:9000/assets/plugin/org.graylog.plugins.collector.CollectorPlugin/plugin.org.graylog.plugins.collector.CollectorPlugin.fe849445e7e2ab2d2bbe.js"></script>
<script src="http://172.19.0.4:9000/assets/plugin/org.graylog.aws.AWSPlugin/plugin.org.graylog.aws.AWSPlugin.5a135f262866542ed363.js"></script>
<script src="http://172.19.0.4:9000/assets/app.911fcb4337d67c175fec.js"></script>
</body>
</html>