diff --git a/docker-compose.yml b/docker-compose.yml index 7a6a853..7d76b56 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -10,7 +10,7 @@ networks: - subnet: 192.168.1.0/24 services: - producer1: + producer1-1: image: tormachris/producer environment: - PRODUCER_KNOWNCONSUMER=192.168.1.21 @@ -19,7 +19,29 @@ services: ipv4_address: 192.168.1.11 depends_on: - 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 environment: - PRODUCER_KNOWNCONSUMER=192.168.1.22 @@ -29,6 +51,26 @@ services: depends_on: - 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: image: tormachris/consumer_api environment: @@ -47,6 +89,7 @@ services: firstsubnet: ipv4_address: 192.168.1.22 + consumer-scheduler1: image: tormachris/consumer-scheduler environment: @@ -63,6 +106,7 @@ services: - LOCAL_UUID=8401c20b-e40b-43c5-af91-1376f4be7905 network_mode: "service:consumer-api2" + redis1: image: redis network_mode: "service:consumer-api1"