SHARE
TWEET

Untitled

a guest Dec 31st, 2018 107 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. version: "2"
  2.  
  3. services:
  4.   node1:
  5.     build: ./node.js
  6.     links:
  7.         - mysql
  8.     ports:
  9.         - "8080"
  10.     volumes:
  11.         - ./node.js:/src
  12.     networks:
  13.         uln:
  14.          ipv4_address: 10.7.0.3
  15.  
  16.   node2:
  17.     build: ./node.js
  18.     links:
  19.         - mysql
  20.     volumes:
  21.         - ./node.js:/src
  22.     ports:
  23.         - "8080"
  24.     networks:
  25.         uln:
  26.          ipv4_address: 10.7.0.4
  27.  
  28.   node3:
  29.     build: ./node.js
  30.     links:
  31.         - mysql
  32.     ports:
  33.         - "8080"
  34.     volumes:
  35.         - ./node.js:/src
  36.     networks:
  37.         uln:
  38.          ipv4_address: 10.7.0.5
  39.  
  40.   mysql:
  41.     image: mysql:latest
  42.     command: --default-authentication-plugin=mysql_native_password
  43.     ports:
  44.        - "3306:3306"
  45.     expose:
  46.        - 33060
  47.     volumes:
  48.        - ./mysql:/var/lib/mysql
  49.     environment:
  50.         MYSQL_ROOT_PASSWORD: secret
  51.         MYSQL_DATABASE: webprog
  52.         MYSQL_USER: webprog
  53.         MYSQL_PASSWORD: webprog
  54.     networks:
  55.         uln:
  56.          ipv4_address: 10.7.0.6
  57.  
  58.   nginx:
  59.     build: ./nginx/
  60.     ports:
  61.            - "80:80"
  62.     volumes:
  63.            - ./www:/var/www/html
  64.     depends_on:
  65.            - node1
  66.             - node2
  67.             - node3
  68.     links:
  69.            - node1
  70.             - node2
  71.             - node3
  72.     networks:
  73.         uln:
  74.          ipv4_address: 10.7.0.2
  75.  
  76. networks:
  77.     uln:
  78.      ipam:
  79.         config:
  80.          - subnet: 10.7.0.0/16
  81.            ip_range: 10.7.0.0/24
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