This commit is contained in:
		@@ -1,20 +1,55 @@
 | 
				
			|||||||
version: '3'
 | 
					version: '3.4'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
networks:
 | 
					networks:
 | 
				
			||||||
  firstsubnet:
 | 
					    firstsubnet:
 | 
				
			||||||
    external: false
 | 
					        driver: bridge
 | 
				
			||||||
  secondsubnet:
 | 
					        ipam:
 | 
				
			||||||
    external: false
 | 
					            driver: default
 | 
				
			||||||
 | 
					            config:
 | 
				
			||||||
 | 
					                - subnet: 192.168.1.0/24
 | 
				
			||||||
 | 
					
 | 
				
			||||||
services:
 | 
					services:
 | 
				
			||||||
  producer:
 | 
					    producer1:
 | 
				
			||||||
    restart: unless-stopped
 | 
					        restart: unless-stopped
 | 
				
			||||||
    image: tormachris/p2p-producer
 | 
					        image: tormachris/p2p-producer
 | 
				
			||||||
    networks:
 | 
					        networks:
 | 
				
			||||||
     - firstsubnet
 | 
					            firstsubnet:
 | 
				
			||||||
 | 
					                ipv4_address: 192.168.1.11
 | 
				
			||||||
 | 
					    producer2:
 | 
				
			||||||
 | 
					        restart: unless-stopped
 | 
				
			||||||
 | 
					        image: tormachris/p2p-producer
 | 
				
			||||||
 | 
					        networks:
 | 
				
			||||||
 | 
					            firstsubnet:
 | 
				
			||||||
 | 
					                ipv4_address: 192.168.1.12
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  consumer:
 | 
					    consumer1:
 | 
				
			||||||
    restart: unless-stopped
 | 
					        restart: unless-stopped
 | 
				
			||||||
    image: tormachris/p2p-consumer
 | 
					        image: tormachris/p2p-consumer
 | 
				
			||||||
    networks:
 | 
					        environment:
 | 
				
			||||||
     - firstsubnet
 | 
					            - REDIS_URL=192.168.1.31
 | 
				
			||||||
 | 
					        networks:
 | 
				
			||||||
 | 
					            firstsubnet:
 | 
				
			||||||
 | 
					                ipv4_address: 192.168.1.21
 | 
				
			||||||
 | 
					    consumer2:
 | 
				
			||||||
 | 
					        restart: unless-stopped
 | 
				
			||||||
 | 
					        image: tormachris/p2p-consumer
 | 
				
			||||||
 | 
					        environment:
 | 
				
			||||||
 | 
					            - REDIS_URL=192.168.1.32
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        networks:
 | 
				
			||||||
 | 
					            firstsubnet:
 | 
				
			||||||
 | 
					                ipv4_address: 192.168.1.22
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    redis1:
 | 
				
			||||||
 | 
					        image: redis
 | 
				
			||||||
 | 
					        restart: unless-stopped
 | 
				
			||||||
 | 
					        networks:
 | 
				
			||||||
 | 
					            firstsubnet:
 | 
				
			||||||
 | 
					                ipv4_address: 192.168.1.31
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    redis2:
 | 
				
			||||||
 | 
					        image: redis
 | 
				
			||||||
 | 
					        restart: unless-stopped
 | 
				
			||||||
 | 
					        networks:
 | 
				
			||||||
 | 
					            firstsubnet:
 | 
				
			||||||
 | 
					                ipv4_address: 192.168.1.32
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user