add more producers
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Torma Kristóf 2020-04-01 01:51:52 +02:00
parent 8a3b7caf7c
commit 0774d0041a

View File

@ -10,7 +10,7 @@ networks:
- subnet: 192.168.1.0/24 - subnet: 192.168.1.0/24
services: services:
producer1: producer1-1:
image: tormachris/producer image: tormachris/producer
environment: environment:
- PRODUCER_KNOWNCONSUMER=192.168.1.21 - PRODUCER_KNOWNCONSUMER=192.168.1.21
@ -19,7 +19,29 @@ services:
ipv4_address: 192.168.1.11 ipv4_address: 192.168.1.11
depends_on: depends_on:
- consumer-api1 - consumer-api1
producer2:
producer1-2:
image: tormachris/producer
environment:
- PRODUCER_KNOWNCONSUMER=192.168.1.21
networks:
firstsubnet:
ipv4_address: 192.168.1.10
depends_on:
- consumer-api1
producer1-3:
image: tormachris/producer
environment:
- PRODUCER_KNOWNCONSUMER=192.168.1.21
networks:
firstsubnet:
ipv4_address: 192.168.1.9
depends_on:
- consumer-api1
producer2-1:
image: tormachris/producer image: tormachris/producer
environment: environment:
- PRODUCER_KNOWNCONSUMER=192.168.1.22 - PRODUCER_KNOWNCONSUMER=192.168.1.22
@ -29,6 +51,26 @@ services:
depends_on: depends_on:
- consumer-api2 - consumer-api2
producer2-2:
image: tormachris/producer
environment:
- PRODUCER_KNOWNCONSUMER=192.168.1.22
networks:
firstsubnet:
ipv4_address: 192.168.1.13
depends_on:
- consumer-api2
producer2-3:
image: tormachris/producer
environment:
- PRODUCER_KNOWNCONSUMER=192.168.1.22
networks:
firstsubnet:
ipv4_address: 192.168.1.14
depends_on:
- consumer-api2
consumer-api1: consumer-api1:
image: tormachris/consumer_api image: tormachris/consumer_api
environment: environment:
@ -47,6 +89,7 @@ services:
firstsubnet: firstsubnet:
ipv4_address: 192.168.1.22 ipv4_address: 192.168.1.22
consumer-scheduler1: consumer-scheduler1:
image: tormachris/consumer-scheduler image: tormachris/consumer-scheduler
environment: environment:
@ -63,6 +106,7 @@ services:
- LOCAL_UUID=8401c20b-e40b-43c5-af91-1376f4be7905 - LOCAL_UUID=8401c20b-e40b-43c5-af91-1376f4be7905
network_mode: "service:consumer-api2" network_mode: "service:consumer-api2"
redis1: redis1:
image: redis image: redis
network_mode: "service:consumer-api1" network_mode: "service:consumer-api1"