mirror of
https://github.com/logos-messaging/logos-messaging-simulator.git
synced 2026-01-04 06:53:08 +00:00
Initial changes
This commit is contained in:
parent
67ebeef4d7
commit
fb9fe22fb4
@ -1,5 +1,9 @@
|
|||||||
version: "3.7"
|
version: "3.7"
|
||||||
|
|
||||||
|
x-traffic-multiple-nodes: &traffic-multiple-nodes >
|
||||||
|
${TRAFFIC_MULTIPLE_NODES:-http://waku-simulator_nwaku_[1..10]:8545}
|
||||||
|
x-traffic-message-size-kb: &traffic-message-size-kb ${TRAFFIC_MESSAGE_SIZE_KB:-10}
|
||||||
|
x-traffic-delay-seconds: &traffic-delay-seconds ${TRAFFIC_DELAY_SECONDS:-15}
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
simulation:
|
simulation:
|
||||||
@ -62,15 +66,15 @@ services:
|
|||||||
depends_on:
|
depends_on:
|
||||||
- bootstrap
|
- bootstrap
|
||||||
|
|
||||||
waku-publisher:
|
rest-traffic:
|
||||||
image: alrevuelta/waku-publisher:9fb206c
|
image: python:3.9.18-alpine3.18
|
||||||
entrypoint: sh
|
command: >
|
||||||
- 'opt/run_wakupublisher.sh'
|
python /opt/traffic.py
|
||||||
|
-mn=${traffic-multiple-nodes}
|
||||||
|
-s=${traffic-message-size-kb}
|
||||||
|
-d=${traffic-delay-seconds}
|
||||||
volumes:
|
volumes:
|
||||||
- ./run_wakupublisher.sh:/opt/run_wakupublisher.sh:Z
|
- ./traffic.py:/opt/traffic.py:Z
|
||||||
environment:
|
|
||||||
MSG_PER_SECOND: 10
|
|
||||||
MSG_SIZE_KBYTES: 10
|
|
||||||
networks:
|
networks:
|
||||||
- simulation
|
- simulation
|
||||||
|
|
||||||
|
|||||||
62
traffic.py
62
traffic.py
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user