2024-05-21 21:03:33 +00:00
|
|
|
version: "3.7"
|
|
|
|
x-logging: &logging
|
|
|
|
logging:
|
|
|
|
driver: json-file
|
|
|
|
options:
|
|
|
|
max-size: 1000m
|
|
|
|
|
|
|
|
# Environment variable definitions
|
|
|
|
x-eth-client-address: ð_client_address ${ETH_CLIENT_ADDRESS:-} # Add your ETH_CLIENT_ADDRESS after the "-"
|
|
|
|
|
|
|
|
x-rln-environment: &rln_env
|
|
|
|
RLN_RELAY_CONTRACT_ADDRESS: ${RLN_RELAY_CONTRACT_ADDRESS:-0xF471d71E9b1455bBF4b85d475afb9BB0954A29c4}
|
|
|
|
RLN_RELAY_CRED_PATH: ${RLN_RELAY_CRED_PATH:-} # Optional: Add your RLN_RELAY_CRED_PATH after the "-"
|
|
|
|
RLN_RELAY_CRED_PASSWORD: ${RLN_RELAY_CRED_PASSWORD:-} # Optional: Add your RLN_RELAY_CRED_PASSWORD after the "-"
|
|
|
|
|
|
|
|
x-test-running-conditions: &test_running_conditions
|
|
|
|
NUM_MESSAGES: ${NUM_MESSAGES:-120}
|
2024-11-26 19:42:27 +00:00
|
|
|
MESSAGE_INTERVAL_MILLIS: "${MESSAGE_INTERVAL_MILLIS:-1000}"
|
2024-08-21 12:54:18 +00:00
|
|
|
PUBSUB: ${PUBSUB:-/waku/2/rs/66/0}
|
|
|
|
CONTENT_TOPIC: ${CONTENT_TOPIC:-/tester/2/light-pubsub-test/wakusim}
|
|
|
|
CLUSTER_ID: ${CLUSTER_ID:-66}
|
|
|
|
MIN_MESSAGE_SIZE: ${MIN_MESSAGE_SIZE:-1Kb}
|
|
|
|
MAX_MESSAGE_SIZE: ${MAX_MESSAGE_SIZE:-150Kb}
|
2024-11-26 19:42:27 +00:00
|
|
|
START_PUBLISHING_AFTER_SECS: ${START_PUBLISHING_AFTER_SECS:-5} # seconds
|
2024-08-21 12:54:18 +00:00
|
|
|
STANDALONE: ${STANDALONE:-1}
|
2024-10-25 20:59:02 +00:00
|
|
|
RECEIVER_METRICS_PORT: 8003
|
|
|
|
PUBLISHER_METRICS_PORT: 8003
|
|
|
|
|
2024-05-21 21:03:33 +00:00
|
|
|
|
|
|
|
# Services definitions
|
|
|
|
services:
|
|
|
|
servicenode:
|
2024-08-21 12:54:18 +00:00
|
|
|
image: ${NWAKU_IMAGE:-harbor.status.im/wakuorg/nwaku:latest-release}
|
2024-05-21 21:03:33 +00:00
|
|
|
ports:
|
|
|
|
- 30304:30304/tcp
|
|
|
|
- 30304:30304/udp
|
|
|
|
- 9005:9005/udp
|
|
|
|
- 127.0.0.1:8003:8003
|
|
|
|
- 80:80 #Let's Encrypt
|
|
|
|
- 8000:8000/tcp #WSS
|
|
|
|
- 127.0.0.1:8645:8645
|
|
|
|
<<:
|
|
|
|
- *logging
|
|
|
|
environment:
|
|
|
|
DOMAIN: ${DOMAIN}
|
|
|
|
RLN_RELAY_CRED_PASSWORD: "${RLN_RELAY_CRED_PASSWORD}"
|
|
|
|
ETH_CLIENT_ADDRESS: *eth_client_address
|
|
|
|
EXTRA_ARGS: ${EXTRA_ARGS}
|
|
|
|
<<:
|
|
|
|
- *rln_env
|
2024-08-21 12:54:18 +00:00
|
|
|
- *test_running_conditions
|
2024-05-21 21:03:33 +00:00
|
|
|
volumes:
|
|
|
|
- ./run_service_node.sh:/opt/run_service_node.sh:Z
|
|
|
|
- ${CERTS_DIR:-./certs}:/etc/letsencrypt/:Z
|
|
|
|
- ./rln_tree:/etc/rln_tree/:Z
|
|
|
|
- ./keystore:/keystore:Z
|
|
|
|
entrypoint: sh
|
|
|
|
command:
|
|
|
|
- /opt/run_service_node.sh
|
|
|
|
|
|
|
|
publishernode:
|
|
|
|
image: waku.liteprotocoltester:latest
|
|
|
|
build:
|
|
|
|
context: ../..
|
2024-09-04 06:35:51 +00:00
|
|
|
dockerfile: ./apps/liteprotocoltester/Dockerfile.liteprotocoltester
|
2024-05-21 21:03:33 +00:00
|
|
|
ports:
|
|
|
|
# - 30304:30304/tcp
|
|
|
|
# - 30304:30304/udp
|
|
|
|
# - 9005:9005/udp
|
|
|
|
# - 127.0.0.1:8003:8003
|
|
|
|
# - 80:80 #Let's Encrypt
|
|
|
|
# - 8000:8000/tcp #WSS
|
|
|
|
- 127.0.0.1:8646:8646
|
|
|
|
<<:
|
|
|
|
- *logging
|
|
|
|
environment:
|
|
|
|
DOMAIN: ${DOMAIN}
|
|
|
|
RLN_RELAY_CRED_PASSWORD: "${RLN_RELAY_CRED_PASSWORD}"
|
|
|
|
ETH_CLIENT_ADDRESS: *eth_client_address
|
|
|
|
EXTRA_ARGS: ${EXTRA_ARGS}
|
|
|
|
<<:
|
|
|
|
- *rln_env
|
|
|
|
- *test_running_conditions
|
|
|
|
volumes:
|
|
|
|
- ${CERTS_DIR:-./certs}:/etc/letsencrypt/:Z
|
|
|
|
- ./rln_tree:/etc/rln_tree/:Z
|
|
|
|
- ./keystore:/keystore:Z
|
|
|
|
entrypoint: sh
|
|
|
|
command:
|
2024-09-04 06:35:51 +00:00
|
|
|
- /usr/bin/run_tester_node.sh
|
2024-08-21 12:54:18 +00:00
|
|
|
- /usr/bin/liteprotocoltester
|
2024-05-21 21:03:33 +00:00
|
|
|
- SENDER
|
2024-08-21 12:54:18 +00:00
|
|
|
- servicenode
|
2024-05-21 21:03:33 +00:00
|
|
|
depends_on:
|
|
|
|
- servicenode
|
|
|
|
configs:
|
|
|
|
- source: cfg_tester_node.toml
|
|
|
|
target: config.toml
|
|
|
|
|
|
|
|
receivernode:
|
|
|
|
image: waku.liteprotocoltester:latest
|
|
|
|
build:
|
|
|
|
context: ../..
|
2024-09-04 06:35:51 +00:00
|
|
|
dockerfile: ./apps/liteprotocoltester/Dockerfile.liteprotocoltester
|
2024-05-21 21:03:33 +00:00
|
|
|
ports:
|
|
|
|
# - 30304:30304/tcp
|
|
|
|
# - 30304:30304/udp
|
|
|
|
# - 9005:9005/udp
|
|
|
|
# - 127.0.0.1:8003:8003
|
|
|
|
# - 80:80 #Let's Encrypt
|
|
|
|
# - 8000:8000/tcp #WSS
|
|
|
|
- 127.0.0.1:8647:8647
|
|
|
|
<<:
|
|
|
|
- *logging
|
|
|
|
environment:
|
|
|
|
DOMAIN: ${DOMAIN}
|
|
|
|
RLN_RELAY_CRED_PASSWORD: "${RLN_RELAY_CRED_PASSWORD}"
|
|
|
|
ETH_CLIENT_ADDRESS: *eth_client_address
|
|
|
|
EXTRA_ARGS: ${EXTRA_ARGS}
|
|
|
|
<<:
|
|
|
|
- *rln_env
|
|
|
|
- *test_running_conditions
|
|
|
|
volumes:
|
|
|
|
- ./run_tester_node.sh:/opt/run_tester_node.sh:Z
|
|
|
|
- ${CERTS_DIR:-./certs}:/etc/letsencrypt/:Z
|
|
|
|
- ./rln_tree:/etc/rln_tree/:Z
|
|
|
|
- ./keystore:/keystore:Z
|
|
|
|
entrypoint: sh
|
|
|
|
command:
|
2024-09-04 06:35:51 +00:00
|
|
|
- /usr/bin/run_tester_node.sh
|
2024-08-21 12:54:18 +00:00
|
|
|
- /usr/bin/liteprotocoltester
|
2024-05-21 21:03:33 +00:00
|
|
|
- RECEIVER
|
2024-08-21 12:54:18 +00:00
|
|
|
- servicenode
|
2024-05-21 21:03:33 +00:00
|
|
|
depends_on:
|
|
|
|
- servicenode
|
|
|
|
- publishernode
|
|
|
|
configs:
|
|
|
|
- source: cfg_tester_node.toml
|
|
|
|
target: config.toml
|
|
|
|
|
|
|
|
prometheus:
|
|
|
|
image: docker.io/prom/prometheus:latest
|
|
|
|
volumes:
|
|
|
|
- ./monitoring/prometheus-config.yml:/etc/prometheus/prometheus.yml:Z
|
|
|
|
command:
|
|
|
|
- --config.file=/etc/prometheus/prometheus.yml
|
|
|
|
ports:
|
|
|
|
- 127.0.0.1:9090:9090
|
|
|
|
depends_on:
|
|
|
|
- servicenode
|
|
|
|
|
|
|
|
grafana:
|
|
|
|
image: docker.io/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:
|
|
|
|
- 0.0.0.0:3000:3000
|
|
|
|
depends_on:
|
|
|
|
- prometheus
|
|
|
|
|
|
|
|
configs:
|
|
|
|
cfg_tester_node.toml:
|
|
|
|
content: |
|
|
|
|
max-connections = 100
|