This repository has been archived on 2020-09-24. You can view files and clone it, but cannot push or open issues or pull requests.
p2p-storage-simulator/docker-compose.yml
Fabian 8a3b7caf7c
All checks were successful
continuous-integration/drone/push Build is passing
PRODUCER_KNOWNCONSUMER
2020-04-01 00:22:27 +02:00

73 lines
1.9 KiB
YAML

version: '3.4'
networks:
firstsubnet:
external: false
driver: bridge
ipam:
driver: default
config:
- subnet: 192.168.1.0/24
services:
producer1:
image: tormachris/producer
environment:
- PRODUCER_KNOWNCONSUMER=192.168.1.21
networks:
firstsubnet:
ipv4_address: 192.168.1.11
depends_on:
- consumer-api1
producer2:
image: tormachris/producer
environment:
- PRODUCER_KNOWNCONSUMER=192.168.1.22
networks:
firstsubnet:
ipv4_address: 192.168.1.12
depends_on:
- consumer-api2
consumer-api1:
image: tormachris/consumer_api
environment:
- REDIS_URL=redis://localhost
- LOCAL_UUID=d8b2e5e2-f675-4194-9324-af58e4b70c54
networks:
firstsubnet:
ipv4_address: 192.168.1.21
consumer-api2:
image: tormachris/consumer_api
environment:
- REDIS_URL=redis://localhost
- LOCAL_UUID=9e79d4e7-f4c2-44d2-ac11-682f62fda985
networks:
firstsubnet:
ipv4_address: 192.168.1.22
consumer-scheduler1:
image: tormachris/consumer-scheduler
environment:
- REDIS_URL=redis://192.168.1.31
- INITIAL_SERVERS=192.168.1.22
- LOCAL_UUID=9d14f9c5-9884-4a57-8ed3-0c4bbd5ffcc4
network_mode: "service:consumer-api1"
consumer-scheduler2:
image: tormachris/consumer-scheduler
environment:
- REDIS_URL=redis://192.168.1.32
- INITIAL_SERVERS=192.168.1.21
- LOCAL_UUID=8401c20b-e40b-43c5-af91-1376f4be7905
network_mode: "service:consumer-api2"
redis1:
image: redis
network_mode: "service:consumer-api1"
redis2:
image: redis
network_mode: "service:consumer-api2"