angepasst an version vom Dec 13, 2021

This commit is contained in:
Czechman 2023-01-07 13:12:49 +01:00
parent 5fcb7ec5cc
commit 39a8510acd
1 changed files with 18 additions and 21 deletions

View File

@ -2,44 +2,42 @@ version: "3.8"
services: services:
mongodb: mongodb:
image: "mongo:4.4" image: "mongo:4.2"
volumes: volumes:
- "mongodb_data:/data/db" - "mongodb_data:/data/db"
restart: "on-failure" restart: "on-failure"
opensearch: elasticsearch:
image: "opensearchproject/opensearch:2.4.0"
environment: environment:
- "OPENSEARCH_JAVA_OPTS=-Xms1g -Xmx1g" ES_JAVA_OPTS: "-Xms1g -Xmx1g -Dlog4j2.formatMsgNoLookups=true"
- "bootstrap.memory_lock=true" bootstrap.memory_lock: "true"
- "discovery.type=single-node" discovery.type: "single-node"
- "action.auto_create_index=false" http.host: "0.0.0.0"
- "plugins.security.ssl.http.enabled=false" action.auto_create_index: "false"
- "plugins.security.disabled=true" image: "docker.elastic.co/elasticsearch/elasticsearch-oss:7.10.2"
ulimits: ulimits:
memlock: memlock:
hard: -1 hard: -1
soft: -1 soft: -1
volumes: volumes:
- "os_data:/usr/share/opensearch/data" - "es_data:/usr/share/elasticsearch/data"
restart: "on-failure" restart: "on-failure"
graylog: graylog:
hostname: "server" image: "graylog/graylog:4.2"
image: "${GRAYLOG_IMAGE:-graylog/graylog:5.0}"
depends_on: depends_on:
opensearch: elasticsearch:
condition: "service_started" condition: "service_started"
mongodb: mongodb:
condition: "service_started" condition: "service_started"
entrypoint: "/usr/bin/tini -- wait-for-it opensearch:9200 -- /docker-entrypoint.sh" entrypoint: "/usr/bin/tini -- wait-for-it elasticsearch:9200 -- /docker-entrypoint.sh"
environment: environment:
GRAYLOG_NODE_ID_FILE: "/usr/share/graylog/data/config/node-id" GRAYLOG_NODE_ID_FILE: "/usr/share/graylog/data/config/node-id"
GRAYLOG_PASSWORD_SECRET: "${GRAYLOG_PASSWORD_SECRET:?Please configure GRAYLOG_PASSWORD_SECRET in the .env file}" GRAYLOG_PASSWORD_SECRET: ${GRAYLOG_PASSWORD_SECRET:?Please configure GRAYLOG_PASSWORD_SECRET in the .env file}
GRAYLOG_ROOT_PASSWORD_SHA2: "${GRAYLOG_ROOT_PASSWORD_SHA2:?Please configure GRAYLOG_ROOT_PASSWORD_SHA2 in the .env file}" GRAYLOG_ROOT_PASSWORD_SHA2: ${GRAYLOG_ROOT_PASSWORD_SHA2:?Please configure GRAYLOG_ROOT_PASSWORD_SHA2 in the .env file}
GRAYLOG_HTTP_BIND_ADDRESS: "0.0.0.0:9000" GRAYLOG_HTTP_BIND_ADDRESS: "0.0.0.0:9001"
GRAYLOG_HTTP_EXTERNAL_URI: "http://localhost:9001/" GRAYLOG_HTTP_EXTERNAL_URI: "http://localhost:9001/"
GRAYLOG_ELASTICSEARCH_HOSTS: "http://opensearch:9200" GRAYLOG_ELASTICSEARCH_HOSTS: "http://elasticsearch:9200"
GRAYLOG_MONGODB_URI: "mongodb://mongodb:27017/graylog" GRAYLOG_MONGODB_URI: "mongodb://mongodb:27017/graylog"
ports: ports:
- "5044:5044/tcp" # Beats - "5044:5044/tcp" # Beats
@ -58,9 +56,8 @@ services:
- "graylog_data:/usr/share/graylog/data/data" - "graylog_data:/usr/share/graylog/data/data"
- "graylog_journal:/usr/share/graylog/data/journal" - "graylog_journal:/usr/share/graylog/data/journal"
restart: "on-failure" restart: "on-failure"
volumes: volumes:
mongodb_data: mongodb_data:
os_data: es_data:
graylog_data: graylog_data:
graylog_journal: graylog_journal: