New Paste

 

Recent Pastes

Administrate




Pastebin on paste.luisaranguren.com

PasteID: 8ou
Pasted by Anonymous, 2019-01-11 19:33:28 GMT
Expires Never
Paste size 3.2 Kb
Tools Raw   Download
 
  1. version: "2.1"  
  2. networks:  
  3.   internal_network:  
  4. services:        
  5.   db:  
  6.     restart: always  
  7.     networks:  
  8.       - internal_network  
  9.     image: ambar/ambar-mongodb:latest  
  10.     environment:  
  11.       - cacheSizeGB=2  
  12.     volumes:  
  13.       - /opt/ambar/db:/data/db  
  14.     expose:  
  15.       - "27017"     
  16.   es:  
  17.     restart: always  
  18.     networks:  
  19.       - internal_network  
  20.     image: ambar/ambar-es:latest  
  21.     expose:  
  22.       - "9200"   
  23.     environment:  
  24.       - cluster.name=ambar-es  
  25.       - ES_JAVA_OPTS=-Xms2g -Xmx2g  
  26.     ulimits:  
  27.       memlock:  
  28.         soft: -1  
  29.         hard: -1    
  30.       nofile:  
  31.         soft: 65536  
  32.         hard: 65536  
  33.     cap_add:  
  34.       - IPC_LOCK  
  35.     volumes:  
  36.       - /opt/ambar/es:/usr/share/elasticsearch/data  
  37.   rabbit:  
  38.     restart: always  
  39.     networks:  
  40.       - internal_network  
  41.     image: ambar/ambar-rabbit:latest  
  42.     hostname: rabbit  
  43.     expose:  
  44.       - "15672"  
  45.       - "5672"     
  46.     volumes:  
  47.       - /opt/ambar/rabbit:/var/lib/rabbitmq  
  48.   redis:  
  49.     restart: always  
  50.     sysctls:  
  51.       - net.core.somaxconn=1024  
  52.     networks:  
  53.       - internal_network  
  54.     image: ambar/ambar-redis:latest  
  55.     expose:  
  56.       - "6379"   
  57.   serviceapi:  
  58.     depends_on:  
  59.       redis:  
  60.         condition: service_healthy  
  61.       rabbit:  
  62.         condition: service_healthy  
  63.       es:  
  64.         condition: service_healthy  
  65.       db:  
  66.         condition: service_healthy  
  67.     restart: always  
  68.     networks:  
  69.       - internal_network  
  70.     image: ambar/ambar-serviceapi:latest  
  71.     expose:  
  72.       - "8081"    
  73.     environment:              
  74.       - mongoDbUrl=mongodb://db:27017/ambar_data  
  75.       - elasticSearchUrl=http://es:9200  
  76.       - redisHost=redis  
  77.       - redisPort=6379  
  78.       - rabbitHost=amqp://rabbit  
  79.       - langAnalyzer=ambar_en     
  80.   webapi:  
  81.     depends_on:  
  82.       serviceapi:  
  83.         condition: service_healthy  
  84.     restart: always  
  85.     networks:  
  86.       - internal_network  
  87.     image: ambar/ambar-webapi:latest  
  88.     expose:  
  89.       - "8080"  
  90.     ports:  
  91.       - "8080:8080"  
  92.     environment:              
  93.       - uiLang=en  
  94.       - mongoDbUrl=mongodb://db:27017/ambar_data  
  95.       - elasticSearchUrl=http://es:9200  
  96.       - redisHost=redis  
  97.       - redisPort=6379  
  98.       - serviceApiUrl=http://serviceapi:8081  
  99.       - rabbitHost=amqp://rabbit      
  100.   frontend:  
  101.     depends_on:  
  102.       webapi:  
  103.         condition: service_healthy  
  104.     image: ambar/ambar-frontend:latest  
  105.     restart: always  
  106.     networks:  
  107.       - internal_network  
  108.     ports:  
  109.       - "80:80"  
  110.     expose:  
  111.       - "80"  
  112.     environment:  
  113.       - api=http://10.10.10.117:8080    
  114.   pipeline0:  
  115.     depends_on:   
  116.       serviceapi:   
  117.         condition: service_healthy                              
  118.     image: ambar/ambar-pipeline:latest  
  119.     restart: always  
  120.     networks:  
  121.       - internal_network    
  122.     environment:                  
  123.       - id=0  
  124.       - api_url=http://serviceapi:8081  
  125.       - rabbit_host=amqp://rabbit  
  126.   ${crawlerName}:  
  127.     depends_on:   
  128.       serviceapi:   
  129.         condition: service_healthy   
  130.     image: ambar/ambar-local-crawler  
  131.     restart: always  
  132.     networks:  
  133.       - internal_network  
  134.     expose:  
  135.       - "8082"  
  136.     environment:        
  137.       - name=${crawlerName}  
  138.     volumes:  
  139.       - ${pathToCrawl}:/usr/data  
  140.   
  141.   
  142.     
  143.    
 
 
 
 
Written by Xan Manning, 2010.