Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: "2"
- services:
- node1:
- build: ./node.js
- links:
- - mysql
- ports:
- - "8080"
- volumes:
- - ./node.js:/src
- networks:
- uln:
- ipv4_address: 10.7.0.3
- node2:
- build: ./node.js
- links:
- - mysql
- volumes:
- - ./node.js:/src
- ports:
- - "8080"
- networks:
- uln:
- ipv4_address: 10.7.0.4
- node3:
- build: ./node.js
- links:
- - mysql
- ports:
- - "8080"
- volumes:
- - ./node.js:/src
- networks:
- uln:
- ipv4_address: 10.7.0.5
- mysql:
- image: mysql:latest
- command: --default-authentication-plugin=mysql_native_password
- ports:
- - "3306:3306"
- expose:
- - 33060
- volumes:
- - ./mysql:/var/lib/mysql
- environment:
- MYSQL_ROOT_PASSWORD: secret
- MYSQL_DATABASE: webprog
- MYSQL_USER: webprog
- MYSQL_PASSWORD: webprog
- networks:
- uln:
- ipv4_address: 10.7.0.6
- nginx:
- build: ./nginx/
- ports:
- - "80:80"
- volumes:
- - ./www:/var/www/html
- depends_on:
- - node1
- - node2
- - node3
- links:
- - node1
- - node2
- - node3
- networks:
- uln:
- ipv4_address: 10.7.0.2
- networks:
- uln:
- ipam:
- config:
- - subnet: 10.7.0.0/16
- ip_range: 10.7.0.0/24
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement