Skip to content

Instantly share code, notes, and snippets.

@alistaircol
Created February 20, 2021 19:21
Show Gist options
  • Save alistaircol/145aad8877a80184e8497802037afcd5 to your computer and use it in GitHub Desktop.
Save alistaircol/145aad8877a80184e8497802037afcd5 to your computer and use it in GitHub Desktop.
docker-compose.yml
# docker run --rm -v $(pwd):/data cytopia/yamlfmt -w docker-compose.yml
version: '3.4'
services:
mailhog:
image: mailhog/mailhog:latest
ports:
- 1025:1025
- 8025:8025
minio:
image: minio/minio:RELEASE.2021-02-19T04-38-02Z
container_name: minio
ports:
- 9999:9000
environment:
# AWS_ACCESS_KEY_ID
- MINIO_ROOT_USER=W3jV4BKyEjsnKwed
# AWS_SECRET_ACCESS_KEY
- MINIO_ROOT_PASSWORD=EePilp8wrzPO79MHcxRYbXuRh4OEaOA67LhJ9EQO70hkIDzDD5Igvjxwj0CT
volumes:
- minio:/data
command: server /data
mongo:
image: mongo:3
volumes:
- mongo_data:/data/db
networks:
- graylog
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.8.5
volumes:
- es_data:/usr/share/elasticsearch/data
environment:
- http.host=0.0.0.0
- transport.host=localhost
- network.host=0.0.0.0
- ES_JAVA_OPTS=-Xms512m -Xmx512m
networks:
- graylog
graylog:
image: graylog/graylog:3.3
container_name: twindig_graylog
volumes:
- graylog_journal:/usr/share/graylog/data/journal
environment:
# CHANGE ME (must be at least 16 characters)!
- GRAYLOG_PASSWORD_SECRET=fNHRWw7tUUUE5Mnv
# Password: fNHRWw7tUUUE5Mnv
- GRAYLOG_ROOT_PASSWORD_SHA2=432fc5c862c24d97b38fb8cca142de0b57693a76a08051d8fc702d909520786e
- GRAYLOG_HTTP_EXTERNAL_URI=http://127.0.0.1:9000/
networks:
- graylog
depends_on:
- mongo
- elasticsearch
ports:
# Graylog web interface and REST API
- 9000:9000
# GELF UDP
- 12201:12201/udp
# syslog UDP
- 514:514/udp
# you can remove this and provide a path if you want to easily explore on your local filesystem
volumes:
minio:
mongo_data:
es_data:
graylog_journal:
networks:
graylog:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment