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 25481bc67a
All checks were successful
continuous-integration/drone/push Build is passing
redis with consumer
2020-03-31 23:55:52 +02:00

64 lines
1.5 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
networks:
firstsubnet:
ipv4_address: 192.168.1.11
producer2:
image: tormachris/producer
networks:
firstsubnet:
ipv4_address: 192.168.1.12
consumer-api1:
image: tormachris/consumer_api
environment:
- REDIS_URL=redis://192.168.1.31
- LOCAL_UUID=31
networks:
firstsubnet:
ipv4_address: 192.168.1.21
consumer-api2:
image: tormachris/consumer_api
environment:
- REDIS_URL=redis://192.168.1.32
- LOCAL_UUID=32
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
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
network_mode: "service:consumer-api2"
redis1:
image: redis
network_mode: "service:consumer-api1"
redis2:
image: redis
network_mode: "service:consumer-api2"