Skip to content

Instantly share code, notes, and snippets.

@jegade
Last active December 1, 2016 13:03
Show Gist options
  • Save jegade/72c0d3ba34794ad27d4654c036e95ce4 to your computer and use it in GitHub Desktop.
Save jegade/72c0d3ba34794ad27d4654c036e95ce4 to your computer and use it in GitHub Desktop.
Graylog docker-compose with own network for frondend and smtp/relay
version: '2'
services:
mongo:
image: "mongo:3"
volumes:
- /volumes/graylog/mongo:/data/db
networks:
- graylog
elasticsearch:
image: "elasticsearch:2"
command: "elasticsearch -Des.cluster.name='graylog'"
volumes:
- /volumes/graylog/elasticsearch:/usr/share/elasticsearch/data
networks:
- graylog
graylog:
image: graylog-plugins
volumes:
- /volumes/graylog/journal:/usr/share/graylog/data/journal
#- /volumes/graylog/config:/usr/share/graylog/data/config
environment:
GRAYLOG_PASSWORD_SECRET: xxxxxxxxxxxxxxxxxxxxxxxxxxxx
GRAYLOG_ROOT_PASSWORD_SHA2: xxxxxxxxxxxxxxxxxxxxxxxxxxxx
GRAYLOG_WEB_ENDPOINT_URI: https://example.tld/api/
GRAYLOG_TRANSPORT_EMAIL_ENABLED: "true"
GRAYLOG_TRANSPORT_EMAIL_HOSTNAME: smtp
GRAYLOG_TRANSPORT_EMAIL_PORT: 25
GRAYLOG_TRANSPORT_EMAIL_USE_AUTH: "false"
GRAYLOG_TRANSPORT_EMAIL_USE_TLS: "false"
GRAYLOG_TRANSPORT_EMAIL_USE_SSL: "false"
depends_on:
- mongo
- elasticsearch
networks:
- graylog
ports:
- "127.0.0.1:9000:9000"
- "12201/tcp:12201/tcp"
- "12201/udp:12201/udp"
- "1514/udp:1514/udp"
- "5044:5044"
networks:
graylog:
external: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment