This commit is contained in:
parent
f7ff881d77
commit
de82e24792
@ -8,6 +8,20 @@ networks:
|
|||||||
driver: default
|
driver: default
|
||||||
config:
|
config:
|
||||||
- subnet: 192.168.111.0/24
|
- subnet: 192.168.111.0/24
|
||||||
|
secondsubnet:
|
||||||
|
external: false
|
||||||
|
driver: bridge
|
||||||
|
ipam:
|
||||||
|
driver: default
|
||||||
|
config:
|
||||||
|
- subnet: 192.168.222.0/24
|
||||||
|
thirdsubnet:
|
||||||
|
external: false
|
||||||
|
driver: bridge
|
||||||
|
ipam:
|
||||||
|
driver: default
|
||||||
|
config:
|
||||||
|
- subnet: 192.168.123.0/24
|
||||||
|
|
||||||
services:
|
services:
|
||||||
|
|
||||||
@ -18,7 +32,7 @@ services:
|
|||||||
#### Producer 1
|
#### Producer 1
|
||||||
|
|
||||||
producer1-1:
|
producer1-1:
|
||||||
image: tormachris/producer
|
image: registry.kmlabz.com/goldenpogacsa/producer
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
- PRODUCER_KNOWNCONSUMER=192.168.111.21
|
- PRODUCER_KNOWNCONSUMER=192.168.111.21
|
||||||
@ -29,7 +43,7 @@ services:
|
|||||||
- producer-redis1-1
|
- producer-redis1-1
|
||||||
|
|
||||||
producer-endpoint1-1:
|
producer-endpoint1-1:
|
||||||
image: tormachris/producer-endpoint
|
image: registry.kmlabz.com/goldenpogacsa/producer-endpoint
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
- REDIS_URL=redis://localhost
|
- REDIS_URL=redis://localhost
|
||||||
@ -50,7 +64,7 @@ services:
|
|||||||
|
|
||||||
|
|
||||||
producer1-2:
|
producer1-2:
|
||||||
image: tormachris/producer
|
image: registry.kmlabz.com/goldenpogacsa/producer
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
- PRODUCER_KNOWNCONSUMER=192.168.111.21
|
- PRODUCER_KNOWNCONSUMER=192.168.111.21
|
||||||
@ -60,7 +74,7 @@ services:
|
|||||||
- producer-redis1-2
|
- producer-redis1-2
|
||||||
|
|
||||||
producer-endpoint1-2:
|
producer-endpoint1-2:
|
||||||
image: tormachris/producer-endpoint
|
image: registry.kmlabz.com/goldenpogacsa/producer-endpoint
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
- REDIS_URL=redis://localhost
|
- REDIS_URL=redis://localhost
|
||||||
@ -82,7 +96,7 @@ services:
|
|||||||
|
|
||||||
|
|
||||||
producer1-3:
|
producer1-3:
|
||||||
image: tormachris/producer
|
image: registry.kmlabz.com/goldenpogacsa/producer
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
- PRODUCER_KNOWNCONSUMER=192.168.111.21
|
- PRODUCER_KNOWNCONSUMER=192.168.111.21
|
||||||
@ -92,7 +106,7 @@ services:
|
|||||||
- producer-redis1-3
|
- producer-redis1-3
|
||||||
|
|
||||||
producer-endpoint1-3:
|
producer-endpoint1-3:
|
||||||
image: tormachris/producer-endpoint
|
image: registry.kmlabz.com/goldenpogacsa/producer-endpoint
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
- REDIS_URL=redis://localhost
|
- REDIS_URL=redis://localhost
|
||||||
@ -109,23 +123,22 @@ services:
|
|||||||
firstsubnet:
|
firstsubnet:
|
||||||
ipv4_address: 192.168.111.9
|
ipv4_address: 192.168.111.9
|
||||||
|
|
||||||
|
|
||||||
### Producer group 2
|
### Producer group 2
|
||||||
|
|
||||||
#### Producer 1
|
#### Producer 1
|
||||||
|
|
||||||
producer2-1:
|
producer2-1:
|
||||||
image: tormachris/producer
|
image: registry.kmlabz.com/goldenpogacsa/producer
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
- PRODUCER_KNOWNCONSUMER=192.168.111.22
|
- PRODUCER_KNOWNCONSUMER=192.168.222.22
|
||||||
network_mode: "service:producer-redis2-1"
|
network_mode: "service:producer-redis2-1"
|
||||||
depends_on:
|
depends_on:
|
||||||
# - consumer-api2
|
# - consumer-api2
|
||||||
- producer-redis2-1
|
- producer-redis2-1
|
||||||
|
|
||||||
producer-endpoint2-1:
|
producer-endpoint2-1:
|
||||||
image: tormachris/producer-endpoint
|
image: registry.kmlabz.com/goldenpogacsa/producer-endpoint
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
- REDIS_URL=redis://localhost
|
- REDIS_URL=redis://localhost
|
||||||
@ -138,25 +151,25 @@ services:
|
|||||||
image: redis
|
image: redis
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
networks:
|
networks:
|
||||||
firstsubnet:
|
secondsubnet:
|
||||||
ipv4_address: 192.168.111.12
|
ipv4_address: 192.168.222.12
|
||||||
|
|
||||||
|
|
||||||
#### Producer 2
|
#### Producer 2
|
||||||
|
|
||||||
|
|
||||||
producer2-2:
|
producer2-2:
|
||||||
image: tormachris/producer
|
image: registry.kmlabz.com/goldenpogacsa/producer
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
- PRODUCER_KNOWNCONSUMER=192.168.111.22
|
- PRODUCER_KNOWNCONSUMER=192.168.222.22
|
||||||
network_mode: "service:producer-redis2-2"
|
network_mode: "service:producer-redis2-2"
|
||||||
depends_on:
|
depends_on:
|
||||||
# - consumer-api2
|
# - consumer-api2
|
||||||
- producer-redis2-2
|
- producer-redis2-2
|
||||||
|
|
||||||
producer-endpoint2-2:
|
producer-endpoint2-2:
|
||||||
image: tormachris/producer-endpoint
|
image: registry.kmlabz.com/goldenpogacsa/producer-endpoint
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
- REDIS_URL=redis://localhost
|
- REDIS_URL=redis://localhost
|
||||||
@ -169,25 +182,25 @@ services:
|
|||||||
image: redis
|
image: redis
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
networks:
|
networks:
|
||||||
firstsubnet:
|
secondsubnet:
|
||||||
ipv4_address: 192.168.111.13
|
ipv4_address: 192.168.222.13
|
||||||
|
|
||||||
|
|
||||||
#### Producer 3
|
#### Producer 3
|
||||||
|
|
||||||
|
|
||||||
producer2-3:
|
producer2-3:
|
||||||
image: tormachris/producer
|
image: registry.kmlabz.com/goldenpogacsa/producer
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
- PRODUCER_KNOWNCONSUMER=192.168.111.22
|
- PRODUCER_KNOWNCONSUMER=192.168.222.22
|
||||||
network_mode: "service:producer-redis2-3"
|
network_mode: "service:producer-redis2-3"
|
||||||
depends_on:
|
depends_on:
|
||||||
# - consumer-api2
|
# - consumer-api2
|
||||||
- producer-redis2-3
|
- producer-redis2-3
|
||||||
|
|
||||||
producer-endpoint2-3:
|
producer-endpoint2-3:
|
||||||
image: tormachris/producer-endpoint
|
image: registry.kmlabz.com/goldenpogacsa/producer-endpoint
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
- REDIS_URL=redis://localhost
|
- REDIS_URL=redis://localhost
|
||||||
@ -200,17 +213,109 @@ services:
|
|||||||
image: redis
|
image: redis
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
networks:
|
networks:
|
||||||
firstsubnet:
|
secondsubnet:
|
||||||
ipv4_address: 192.168.111.14
|
ipv4_address: 192.168.222.14
|
||||||
|
|
||||||
|
|
||||||
|
## Producer Group 3
|
||||||
|
|
||||||
|
#### Producer 1
|
||||||
|
|
||||||
|
producer3-1:
|
||||||
|
image: registry.kmlabz.com/goldenpogacsa/producer
|
||||||
|
restart: unless-stopped
|
||||||
|
environment:
|
||||||
|
- PRODUCER_KNOWNCONSUMER=192.168.123.21
|
||||||
|
- PRODUCER_REDIS=localhost
|
||||||
|
network_mode: "service:producer-redis1-1"
|
||||||
|
depends_on:
|
||||||
|
# - consumer-api1
|
||||||
|
- producer-redis1-1
|
||||||
|
|
||||||
|
producer-endpoint3-1:
|
||||||
|
image: registry.kmlabz.com/goldenpogacsa/producer-endpoint
|
||||||
|
restart: unless-stopped
|
||||||
|
environment:
|
||||||
|
- REDIS_URL=redis://localhost
|
||||||
|
network_mode: "service:producer-redis1-1"
|
||||||
|
depends_on:
|
||||||
|
# - consumer-api1
|
||||||
|
- producer-redis1-1
|
||||||
|
|
||||||
|
producer-redis3-1:
|
||||||
|
image: redis
|
||||||
|
restart: unless-stopped
|
||||||
|
networks:
|
||||||
|
thirdsubnet:
|
||||||
|
ipv4_address: 192.168.123.11
|
||||||
|
|
||||||
|
|
||||||
|
#### Producer 2
|
||||||
|
|
||||||
|
|
||||||
|
producer3-2:
|
||||||
|
image: registry.kmlabz.com/goldenpogacsa/producer
|
||||||
|
restart: unless-stopped
|
||||||
|
environment:
|
||||||
|
- PRODUCER_KNOWNCONSUMER=192.168.123.21
|
||||||
|
network_mode: "service:producer-redis1-2"
|
||||||
|
depends_on:
|
||||||
|
# - consumer-api1
|
||||||
|
- producer-redis1-2
|
||||||
|
|
||||||
|
producer-endpoint3-2:
|
||||||
|
image: registry.kmlabz.com/goldenpogacsa/producer-endpoint
|
||||||
|
restart: unless-stopped
|
||||||
|
environment:
|
||||||
|
- REDIS_URL=redis://localhost
|
||||||
|
network_mode: "service:producer-redis1-2"
|
||||||
|
depends_on:
|
||||||
|
# - consumer-api1
|
||||||
|
- producer-redis1-2
|
||||||
|
|
||||||
|
|
||||||
|
producer-redis3-2:
|
||||||
|
image: redis
|
||||||
|
restart: unless-stopped
|
||||||
|
networks:
|
||||||
|
thirdsubnet:
|
||||||
|
ipv4_address: 192.168.123.10
|
||||||
|
|
||||||
|
|
||||||
|
#### Producer 3
|
||||||
|
producer3-3:
|
||||||
|
image: registry.kmlabz.com/goldenpogacsa/producer
|
||||||
|
restart: unless-stopped
|
||||||
|
environment:
|
||||||
|
- PRODUCER_KNOWNCONSUMER=192.168.123.22
|
||||||
|
network_mode: "service:producer-redis2-3"
|
||||||
|
depends_on:
|
||||||
|
# - consumer-api2
|
||||||
|
- producer-redis2-3
|
||||||
|
|
||||||
|
producer-endpoint3-3:
|
||||||
|
image: registry.kmlabz.com/goldenpogacsa/producer-endpoint
|
||||||
|
restart: unless-stopped
|
||||||
|
environment:
|
||||||
|
- REDIS_URL=redis://localhost
|
||||||
|
network_mode: "service:producer-redis2-3"
|
||||||
|
depends_on:
|
||||||
|
# - consumer-api2
|
||||||
|
- producer-redis2-3
|
||||||
|
|
||||||
|
producer-redis3-3:
|
||||||
|
image: redis
|
||||||
|
restart: unless-stopped
|
||||||
|
networks:
|
||||||
|
thirdsubnet:
|
||||||
|
ipv4_address: 192.168.123.14
|
||||||
|
|
||||||
## Consumer stuff
|
## Consumer stuff
|
||||||
|
|
||||||
### Consumer 1
|
### Consumer 1
|
||||||
|
|
||||||
consumer-api1:
|
consumer-api1:
|
||||||
image: tormachris/consumer_api
|
image: registry.kmlabz.com/goldenpogacsa/consumer-api
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
- REDIS_URL=redis://192.168.111.121/0
|
- REDIS_URL=redis://192.168.111.121/0
|
||||||
@ -222,11 +327,11 @@ services:
|
|||||||
- consumer-redis1
|
- consumer-redis1
|
||||||
|
|
||||||
consumer-scheduler1:
|
consumer-scheduler1:
|
||||||
image: tormachris/consumer-scheduler
|
image: registry.kmlabz.com/goldenpogacsa/consumer-scheduler
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
- REDIS_URL=redis://192.168.111.121/0
|
- REDIS_URL=redis://192.168.111.121/0
|
||||||
- INITIAL_SERVERS=192.168.111.22
|
- INITIAL_SERVERS="[\"192.168.222.22\", \"192.168.222.122\"]"
|
||||||
- LOCAL_UUID=d8b2e5e2-f675-4194-9324-af58e4b70c54
|
- LOCAL_UUID=d8b2e5e2-f675-4194-9324-af58e4b70c54
|
||||||
network_mode: "service:consumer-api1"
|
network_mode: "service:consumer-api1"
|
||||||
depends_on:
|
depends_on:
|
||||||
@ -243,23 +348,23 @@ services:
|
|||||||
|
|
||||||
|
|
||||||
consumer-api2:
|
consumer-api2:
|
||||||
image: tormachris/consumer_api
|
image: registry.kmlabz.com/goldenpogacsa/consumer-api
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
- REDIS_URL=redis://192.168.111.122/0
|
- REDIS_URL=redis://192.168.222.122/0
|
||||||
- LOCAL_UUID=9e79d4e7-f4c2-44d2-ac11-682f62fda985
|
- LOCAL_UUID=9e79d4e7-f4c2-44d2-ac11-682f62fda985
|
||||||
networks:
|
networks:
|
||||||
firstsubnet:
|
secondsubnet:
|
||||||
ipv4_address: 192.168.111.22
|
ipv4_address: 192.168.222.22
|
||||||
depends_on:
|
depends_on:
|
||||||
- consumer-redis2
|
- consumer-redis2
|
||||||
|
|
||||||
consumer-scheduler2:
|
consumer-scheduler2:
|
||||||
image: tormachris/consumer-scheduler
|
image: registry.kmlabz.com/goldenpogacsa/consumer-scheduler
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
- REDIS_URL=redis://192.168.111.122/0
|
- REDIS_URL=redis://192.168.222.122/0
|
||||||
- INITIAL_SERVERS=192.168.111.21
|
- INITIAL_SERVERS="[\"192.168.111.21\", \"192.168.123.21\"]"
|
||||||
- LOCAL_UUID=9e79d4e7-f4c2-44d2-ac11-682f62fda985
|
- LOCAL_UUID=9e79d4e7-f4c2-44d2-ac11-682f62fda985
|
||||||
network_mode: "service:consumer-api2"
|
network_mode: "service:consumer-api2"
|
||||||
depends_on:
|
depends_on:
|
||||||
@ -270,5 +375,37 @@ services:
|
|||||||
image: redis
|
image: redis
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
networks:
|
networks:
|
||||||
firstsubnet:
|
secondsubnet:
|
||||||
ipv4_address: 192.168.111.122
|
ipv4_address: 192.168.222.122
|
||||||
|
|
||||||
|
### Consumer 3
|
||||||
|
|
||||||
|
consumer-api3:
|
||||||
|
image: registry.kmlabz.com/goldenpogacsa/consumer-api
|
||||||
|
restart: unless-stopped
|
||||||
|
environment:
|
||||||
|
- REDIS_URL=redis://192.168.123.121/0
|
||||||
|
- LOCAL_UUID=d8b2e5e2-f675-4194-9324-af58e4b70c54
|
||||||
|
networks:
|
||||||
|
thirdsubnet:
|
||||||
|
ipv4_address: 192.168.123.21
|
||||||
|
depends_on:
|
||||||
|
- consumer-redis1
|
||||||
|
|
||||||
|
consumer-scheduler3:
|
||||||
|
image: registry.kmlabz.com/goldenpogacsa/consumer-scheduler
|
||||||
|
restart: unless-stopped
|
||||||
|
environment:
|
||||||
|
- REDIS_URL=redis://192.168.123.121/0
|
||||||
|
- INITIAL_SERVERS="[\"192.168.111.21\", \"192.168.222.122\"]"
|
||||||
|
- LOCAL_UUID=d8b2e5e3-f675-4194-9324-af58e4b70c55
|
||||||
|
network_mode: "service:consumer-api3"
|
||||||
|
depends_on:
|
||||||
|
- consumer-redis1
|
||||||
|
|
||||||
|
consumer-redis3:
|
||||||
|
image: redis
|
||||||
|
restart: unless-stopped
|
||||||
|
networks:
|
||||||
|
thirdsubnet:
|
||||||
|
ipv4_address: 192.168.123.121
|
Reference in New Issue
Block a user