I am setting up everything for the first time with Docker Compose, and it seems to work, but I just want to make sure it all looks correct. Can someone let me know if I am missing anything? For now I’m just accessing the web UI from port 9000, but I eventually plan to plug it up to NGINX once I got the settings solid.
version: "3.7"
services:
mongo:
image: mongo:4
restart: unless-stopped
user: $UID:$GID
networks:
- local
volumes:
- ./mongo:/data/db
elastic:
image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.8.5
restart: unless-stopped
# user: $UID:$GID
networks:
- local
volumes:
- ./elastic:/usr/share/elasticsearch/data
environment:
- http.host=0.0.0.0
- transport.host=localhost
- network.host=0.0.0.0
- ES_MAX_MEM=1g
- ES_JAVA_OPTS=-Xms512m -Xmx512m
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
app:
image: graylog/graylog:3.1
# restart: unless-stopped
# user: $UID:$GID
networks:
local:
reverse_proxy:
aliases:
- graylog
volumes:
- /etc/localtime:/etc/localtime:ro
# - ./graylog:/usr/share/graylog/data/journal
depends_on:
- mongo
- elastic
environment:
- GRAYLOG_HTTP_EXTERNAL_URI=http://192.168.1.50:9000/
- GRAYLOG_ELASTICSEARCH_HOSTS=http://elastic:9200
- GRAYLOG_ROOT_PASSWORD_SHA2=8c6976e5b5410415bde908bd4dee15dfb167a9c873fc4bb8a81f6f2ab448a918
# - GRAYLOG_ELASTICSEARCH_DISCOVERY_ENABLED=true
# - GRAYLOG_HTTP_BIND_ADDRESS=127.0.0.1:9000
# - GRAYLOG_HTTP_PUBLISH_URI=http://192.168.1.50:9000/
# - GRAYLOG_WEB_ENDPOINT_URI=http://192.168.1.50:9000/api
ports:
- 9000:9000 # Web interface
- 514:514 # Syslog
- 514:514/udp # Syslog
# - 12201:12201 # GELF
networks:
reverse_proxy:
external: true
name: reverse_proxy
local: