ElasticSearch容器不会在Docker中启动

时间:2018-06-21 17:05:10

标签: docker docker-compose docker-container docker-image

我试图在Win10中运行此脚本来配置所有内容。 除弹性容器外,所有容器均已正确初始化,并且 弹性超时,然后以代码124退出。 https://imgur.com/a/FO8ckwc(某些日志输出) some log outputs some log outputs 我在运行此脚本的地方没有触摸Windows端口(您可以看到注释)     https://pastebin.com/7Z8Gnenr

version: '3.1'

# Generated on 23-04-2018

services:
  alfresco:
    image: openmbeeguest/mms-repo:3.2.4-SNAPSHOT
    environment:
      CATALINA_OPTS: "-Xmx1G -XX:+UseConcMarkSweepGC"
    depends_on:
      - postgresql
      - activemq
      - elastic
    networks:
      - internal
    ports:
      - 8080:8080
    volumes:
      - alf_logs:/usr/local/tomcat/logs
      - alf_data:/opt/alf_data
    tmpfs:
      - /tmp
      - /usr/local/tomcat/temp/
      - /usr/local/tomcat/work/

  solr:
    image: openmbeeguest/mms-solr:3.2.4-SNAPSHOT
    environment:
      CATALINA_OPTS: "-Xmx1G -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:G1HeapRegionSize=8m -XX:MaxGCPauseMillis=200"
    depends_on:
      - alfresco
    networks:
      - internal
    volumes:
      - solr_logs:/usr/local/tomcat/logs/
      - solr_content_store:/opt/solr/ContentStore
    tmpfs:
      - /tmp
      - /usr/local/tomcat/temp/
      - /usr/local/tomcat/work/

  activemq:
    image: openmbeeguest/mms-activemq:3.2.4-SNAPSHOT
    ports:

    #I changed these Windows side ports 
      - 61615:61616 
      - 61617:61614
      - 8162:8161

    # ORIGINAL  
      #- 61616:61616 
      #- 61614:61614
      #- 8161:8161
    volumes:
      - activemq-data-volume:/data/activemq
      - activemq-log-volume:/var/log/activemq
      - activemq-conf-volume:/opt/activemq/conf
    environment:
      - ACTIVEMQ_ADMIN_LOGIN admin
      - ACTIVEMQ_ADMIN_PASSWORD admin
    networks:
      - internal


  elastic:
    image: openmbeeguest/mms-elastic:3.2.4-SNAPSHOT
    environment:
      CLEAN: 'false'
    ports:
      - 9200:9200
    volumes:
      - elastic-data-volume:/usr/share/elasticsearch/data
    networks:
      - internal

  postgresql:
    image: openmbeeguest/mms-postgres:3.2.4-SNAPSHOT
    volumes:
       - pgsql_data:/var/lib/postgresql/data
    environment:
      - POSTGRES_USER=alfresco
      - POSTGRES_PASSWORD=alfresco
      - POSTGRES_DB=alfresco
    networks:
      - internal


volumes:
  alf_logs:
  alf_data:
  solr_logs:
  solr_content_store:
  pgsql_data:
  activemq-data-volume:
  activemq-log-volume:
  activemq-conf-volume:
  elastic-data-volume:
  nginx-external-volume:

networks:
  internal:

任何帮助将不胜感激!

1 个答案:

答案 0 :(得分:1)

您是否可以共享来自Elasticsearch容器的日志?没有它,很难说出它为什么退出。

vm.max_map_count设置-default in Docker is too low for elasticsearch to function是让我反复绊倒的一件事,所以这是检查的第一件事。