daily pastebin goal
62%
SHARE
TWEET

Untitled

a guest Apr 27th, 2018 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. version: '3.3'
  2.  
  3. services:
  4.  
  5.     elasticsearch:
  6.         container_name: elasticsearch
  7.         image: docker.elastic.co/elasticsearch/elasticsearch:6.2.2
  8.         volumes:
  9.             - /etc/localtime:/etc/localtime:ro
  10.             - es1_data:/usr/share/elasticsearch/data        
  11.         environment:
  12.             - node.name=es1
  13.             - cluster.name=es-cluster
  14.             - bootstrap.memory_lock=false
  15.             - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
  16.         ports:
  17.             - 9200:9200
  18.             - 9300:9300
  19.         networks:
  20.             - esnet
  21.            
  22.     elasticsearch2:
  23.         container_name: elasticsearch2
  24.         image: docker.elastic.co/elasticsearch/elasticsearch:6.2.2
  25.         volumes:
  26.             - /etc/localtime:/etc/localtime:ro
  27.             - share_data:/usr/share/elasticsearch/data        
  28.         environment:
  29.             - node.name=es2        
  30.             - cluster.name=es-cluster
  31.             - bootstrap.memory_lock=false
  32.             - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
  33.             - discovery.zen.ping.unicast.hosts=elasticsearch                
  34.         ports:
  35.             - 9201:9200
  36.             - 9301:9300            
  37.         networks:
  38.             - esnet
  39.     cerebro:
  40.       image: yannart/cerebro
  41.       restart: always
  42.       ports:
  43.         - 9000:9000
  44.       networks:
  45.         - esnet  
  46.  
  47. volumes:
  48.   es1_data:
  49.     driver: local
  50.     driver_opts:
  51.       type: nfs
  52.       o: addr=192.168.1.3,rw,nolock
  53.       device: ":/mnt/green1/es1"
  54.   share_data:
  55.     driver: local
  56.     driver_opts:
  57.       type: nfs
  58.       o: addr=192.168.1.3,rw,nolock
  59.       device: ":/mnt/green1/share"              
  60.  
  61. networks:
  62.   esnet:
  63.     driver: bridge
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87. version: '3'
  88.  
  89. services:
  90.   db:
  91.     image: mariadb
  92.     environment:
  93.       MYSQL_ROOT_PASSWORD: secret
  94.       MYSQL_DATABASE: mysql
  95.       MYSQL_USER: mysql
  96.       MYSQL_PASSWORD: mysql
  97.     volumes:
  98.       - nfs_share:/var/lib/mysql  
  99.  
  100.   adminer:
  101.     image: adminer
  102.     restart: always
  103.     ports:
  104.       - 8080:8080
  105.  
  106. volumes:
  107.   nfs_share:
  108.     driver: local
  109.     driver_opts:
  110.       type: nfs
  111.       o: addr=192.168.1.3,rw,nolock
  112.       device: ":/mnt/green1/mariadb01"
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124. #/mnt/green1/share      192.168.1.0/24(rw,insecure,sync,no_subtree_check,no_root_squash)
  125. #/mnt/green1/es1       192.168.1.0/24(rw,insecure,sync,no_subtree_check,no_root_squash)
  126. #/mnt/green1/mariadb01       192.168.1.0/24(rw,insecure,sync,no_subtree_check,no_root_squash)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top