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

56 lines
1.3 KiB
YAML
Raw Normal View History

2020-03-31 23:09:21 +02:00
version: '3.4'
2020-03-09 16:52:27 +01:00
networks:
2020-03-31 23:09:21 +02:00
firstsubnet:
driver: bridge
ipam:
driver: default
config:
- subnet: 192.168.1.0/24
2020-03-09 16:52:27 +01:00
services:
2020-03-31 23:09:21 +02:00
producer1:
restart: unless-stopped
image: tormachris/p2p-producer
networks:
firstsubnet:
ipv4_address: 192.168.1.11
producer2:
restart: unless-stopped
image: tormachris/p2p-producer
networks:
firstsubnet:
ipv4_address: 192.168.1.12
2020-03-09 16:52:27 +01:00
2020-03-31 23:09:21 +02:00
consumer1:
restart: unless-stopped
image: tormachris/p2p-consumer
environment:
- REDIS_URL=192.168.1.31
networks:
firstsubnet:
ipv4_address: 192.168.1.21
consumer2:
restart: unless-stopped
image: tormachris/p2p-consumer
environment:
- REDIS_URL=192.168.1.32
networks:
firstsubnet:
ipv4_address: 192.168.1.22
redis1:
image: redis
restart: unless-stopped
networks:
firstsubnet:
ipv4_address: 192.168.1.31
redis2:
image: redis
restart: unless-stopped
networks:
firstsubnet:
ipv4_address: 192.168.1.32