2023-06-26 16:19:59 +02:00
|
|
|
|
version: "3.7"
|
|
|
|
|
|
2023-08-31 14:32:59 +02:00
|
|
|
|
|
|
|
|
|
networks:
|
|
|
|
|
simulation:
|
|
|
|
|
driver: bridge
|
|
|
|
|
ipam:
|
|
|
|
|
driver: default
|
|
|
|
|
config:
|
|
|
|
|
- subnet: "10.1.0.0/22"
|
|
|
|
|
|
2023-06-26 16:19:59 +02:00
|
|
|
|
services:
|
|
|
|
|
|
|
|
|
|
bootstrap:
|
|
|
|
|
image: ${NWAKU_IMAGE}
|
|
|
|
|
restart: on-failure
|
|
|
|
|
# TODO: expose some ports to inject traffic
|
|
|
|
|
ports:
|
|
|
|
|
- 127.0.0.1:60000:60000
|
|
|
|
|
- 127.0.0.1:8008:8008
|
|
|
|
|
- 127.0.0.1:9000:9000
|
|
|
|
|
- 127.0.0.1:8545:8545
|
|
|
|
|
entrypoint: sh
|
|
|
|
|
command:
|
|
|
|
|
- '/opt/run_bootstrap.sh'
|
|
|
|
|
volumes:
|
|
|
|
|
- ./run_bootstrap.sh:/opt/run_bootstrap.sh:Z
|
2023-08-31 14:32:59 +02:00
|
|
|
|
networks:
|
|
|
|
|
- simulation
|
2023-06-26 16:19:59 +02:00
|
|
|
|
|
|
|
|
|
nwaku:
|
|
|
|
|
image: ${NWAKU_IMAGE}
|
|
|
|
|
restart: on-failure
|
|
|
|
|
deploy:
|
|
|
|
|
replicas: ${NUM_NWAKU_NODES}
|
|
|
|
|
entrypoint: sh
|
|
|
|
|
command:
|
|
|
|
|
- '/opt/run_nwaku.sh'
|
|
|
|
|
volumes:
|
|
|
|
|
- ./run_nwaku.sh:/opt/run_nwaku.sh:Z
|
|
|
|
|
depends_on:
|
|
|
|
|
- bootstrap
|
2023-08-31 14:32:59 +02:00
|
|
|
|
networks:
|
|
|
|
|
- simulation
|
2023-06-26 16:19:59 +02:00
|
|
|
|
|
2023-07-05 11:09:15 +02:00
|
|
|
|
gowaku:
|
|
|
|
|
image: ${GOWAKU_IMAGE}
|
|
|
|
|
restart: on-failure
|
|
|
|
|
deploy:
|
|
|
|
|
replicas: ${NUM_GOWAKU_NODES}
|
|
|
|
|
entrypoint: sh
|
|
|
|
|
command:
|
|
|
|
|
- '/opt/run_gowaku.sh'
|
|
|
|
|
volumes:
|
|
|
|
|
- ./run_gowaku.sh:/opt/run_gowaku.sh:Z
|
|
|
|
|
depends_on:
|
|
|
|
|
- bootstrap
|
2023-06-26 16:19:59 +02:00
|
|
|
|
|
|
|
|
|
waku-publisher:
|
2023-07-10 09:49:43 +02:00
|
|
|
|
image: alrevuelta/waku-publisher:9fb206c
|
2023-06-26 16:19:59 +02:00
|
|
|
|
entrypoint: sh
|
|
|
|
|
- 'opt/run_wakupublisher.sh'
|
|
|
|
|
volumes:
|
|
|
|
|
- ./run_wakupublisher.sh:/opt/run_wakupublisher.sh:Z
|
2023-07-05 11:09:15 +02:00
|
|
|
|
environment:
|
|
|
|
|
MSG_PER_SECOND: 10
|
|
|
|
|
MSG_SIZE_KBYTES: 10
|
2023-08-31 14:32:59 +02:00
|
|
|
|
networks:
|
|
|
|
|
- simulation
|
2023-06-26 16:19:59 +02:00
|
|
|
|
|
|
|
|
|
prometheus:
|
|
|
|
|
image: prom/prometheus:latest
|
|
|
|
|
volumes:
|
|
|
|
|
- ./monitoring/prometheus-config.yml:/etc/prometheus/prometheus.yml:z
|
|
|
|
|
command:
|
|
|
|
|
- --config.file=/etc/prometheus/prometheus.yml
|
|
|
|
|
- --storage.tsdb.retention.time=7d
|
|
|
|
|
ports:
|
|
|
|
|
- 127.0.0.1:9090:9090
|
|
|
|
|
restart: on-failure
|
2023-08-31 14:32:59 +02:00
|
|
|
|
networks:
|
|
|
|
|
- simulation
|
2023-06-26 16:19:59 +02:00
|
|
|
|
|
|
|
|
|
grafana:
|
|
|
|
|
image: grafana/grafana:latest
|
|
|
|
|
env_file:
|
|
|
|
|
- ./monitoring/configuration/grafana-plugins.env
|
|
|
|
|
volumes:
|
|
|
|
|
- ./monitoring/configuration/grafana.ini:/etc/grafana/grafana.ini:z
|
|
|
|
|
- ./monitoring/configuration/dashboards.yaml:/etc/grafana/provisioning/dashboards/dashboards.yaml:z
|
|
|
|
|
- ./monitoring/configuration/datasources.yaml:/etc/grafana/provisioning/datasources/datasources.yaml:z
|
|
|
|
|
- ./monitoring/configuration/dashboards:/var/lib/grafana/dashboards/:z
|
|
|
|
|
- ./monitoring/configuration/customizations/custom-logo.svg:/usr/share/grafana/public/img/grafana_icon.svg:z
|
|
|
|
|
- ./monitoring/configuration/customizations/custom-logo.svg:/usr/share/grafana/public/img/grafana_typelogo.svg:z
|
|
|
|
|
- ./monitoring/configuration/customizations/custom-logo.png:/usr/share/grafana/public/img/fav32.png:z
|
|
|
|
|
ports:
|
|
|
|
|
#- 127.0.0.1:3000:3000
|
|
|
|
|
# open port to access the dashboard
|
|
|
|
|
- 3000:3000
|
|
|
|
|
restart: on-failure
|
|
|
|
|
depends_on:
|
|
|
|
|
- prometheus
|
2023-08-31 14:32:59 +02:00
|
|
|
|
networks:
|
|
|
|
|
- simulation
|
2023-06-26 16:19:59 +02:00
|
|
|
|
|
|
|
|
|
cadvisor:
|
|
|
|
|
image: gcr.io/cadvisor/cadvisor:latest
|
|
|
|
|
container_name: cadvisor
|
|
|
|
|
#ports:
|
|
|
|
|
# - 8080:8080
|
|
|
|
|
volumes:
|
|
|
|
|
- /:/rootfs:ro
|
|
|
|
|
- /var/run:/var/run:rw
|
|
|
|
|
- /sys:/sys:ro
|
|
|
|
|
- /var/lib/docker/:/var/lib/docker:ro
|
|
|
|
|
depends_on:
|
|
|
|
|
- redis
|
2023-08-31 14:32:59 +02:00
|
|
|
|
networks:
|
|
|
|
|
- simulation
|
2023-06-26 16:19:59 +02:00
|
|
|
|
|
|
|
|
|
redis:
|
|
|
|
|
image: redis:latest
|
|
|
|
|
container_name: redis
|
|
|
|
|
#ports:
|
|
|
|
|
# - 6379:6379
|
2023-08-31 14:32:59 +02:00
|
|
|
|
networks:
|
|
|
|
|
- simulation
|