SHARE
TWEET

Untitled

a guest Sep 11th, 2019 136 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. version: "3.7"
  2.  
  3. services:
  4.   ndb_mgmd:
  5.     image: mysql/mysql-cluster
  6.     command: 'ndb_mgmd'
  7.     ports:
  8.       - "1186:1186"
  9.     volumes:
  10.       - ./mysql-cluster.cnf:/etc/mysql-cluster.cnf
  11.     networks:
  12.       cluster:
  13.         ipv4_address: 192.168.0.2
  14.  
  15.   ndb_data_node_1:
  16.     image: mysql/mysql-cluster
  17.     command: 'ndbd'
  18.     depends_on:
  19.       - ndb_mgmd
  20.     networks:
  21.       cluster:
  22.         ipv4_address: 192.168.0.3
  23.  
  24.   ndb_data_node_2:
  25.     image: mysql/mysql-cluster
  26.     container_name: 'ndb2'
  27.     command: 'ndbd'
  28.     depends_on:
  29.       - ndb_mgmd
  30.     networks:
  31.       cluster:
  32.         ipv4_address: 192.168.0.4
  33.  
  34.   ndb_mysqld:
  35.     image: mysql/mysql-cluster
  36.     command: 'mysqld'
  37.     ports:
  38.       - "3306:3306"
  39.     environment:
  40.       - MYSQL_DATABASE=dbversion
  41.       - MYSQL_USER=sys
  42.       - MYSQL_PASSWORD=qwerty
  43.       - MYSQL_ROOT_HOST=%
  44.       - MYSQL_ROOT_PASSWORD=toor
  45.     depends_on:
  46.       - ndb_mgmd
  47.       - ndb_data_node_1
  48.       - ndb_data_node_2
  49.     networks:
  50.       cluster:
  51.         ipv4_address: 192.168.0.10
  52.  
  53. networks:
  54.   cluster:
  55.     ipam:
  56.       driver: default
  57.       config:
  58.         - subnet: "192.168.0.0/16"
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