diff --git a/docker-compose.yml b/docker-compose.yml index e74adc0..07c4f1a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,44 +2,42 @@ version: "3.8" services: mongodb: - image: "mongo:4.4" + image: "mongo:4.2" volumes: - "mongodb_data:/data/db" restart: "on-failure" - opensearch: - image: "opensearchproject/opensearch:2.4.0" + elasticsearch: environment: - - "OPENSEARCH_JAVA_OPTS=-Xms1g -Xmx1g" - - "bootstrap.memory_lock=true" - - "discovery.type=single-node" - - "action.auto_create_index=false" - - "plugins.security.ssl.http.enabled=false" - - "plugins.security.disabled=true" + ES_JAVA_OPTS: "-Xms1g -Xmx1g -Dlog4j2.formatMsgNoLookups=true" + bootstrap.memory_lock: "true" + discovery.type: "single-node" + http.host: "0.0.0.0" + action.auto_create_index: "false" + image: "docker.elastic.co/elasticsearch/elasticsearch-oss:7.10.2" ulimits: memlock: hard: -1 soft: -1 volumes: - - "os_data:/usr/share/opensearch/data" + - "es_data:/usr/share/elasticsearch/data" restart: "on-failure" graylog: - hostname: "server" - image: "${GRAYLOG_IMAGE:-graylog/graylog:5.0}" + image: "graylog/graylog:4.2" depends_on: - opensearch: + elasticsearch: condition: "service_started" mongodb: 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: 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_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_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_HTTP_BIND_ADDRESS: "0.0.0.0: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" ports: - "5044:5044/tcp" # Beats @@ -58,9 +56,8 @@ services: - "graylog_data:/usr/share/graylog/data/data" - "graylog_journal:/usr/share/graylog/data/journal" restart: "on-failure" - volumes: mongodb_data: - os_data: + es_data: graylog_data: - graylog_journal: + graylog_journal: \ No newline at end of file