2023-06-26 14:19:59 +00:00
|
|
|
|
version: "3.7"
|
|
|
|
|
|
2023-08-31 12:32:59 +00:00
|
|
|
|
networks:
|
|
|
|
|
simulation:
|
|
|
|
|
driver: bridge
|
|
|
|
|
ipam:
|
|
|
|
|
driver: default
|
|
|
|
|
config:
|
|
|
|
|
- subnet: "10.1.0.0/22"
|
|
|
|
|
|
2023-06-26 14:19:59 +00:00
|
|
|
|
services:
|
|
|
|
|
|
2024-02-23 08:48:02 +00:00
|
|
|
|
foundry:
|
|
|
|
|
image: ghcr.io/foundry-rs/foundry:nightly-9b73e06e1fe376738b92ae081107620291d50188
|
|
|
|
|
labels:
|
|
|
|
|
com.centurylinklabs.watchtower.enable: '${WATCHTOWER_ENABLED:-false}'
|
2024-03-03 06:30:33 +00:00
|
|
|
|
ports:
|
2024-03-26 12:01:12 +00:00
|
|
|
|
- 0.0.0.0:8545:8545
|
2024-03-26 08:41:52 +00:00
|
|
|
|
command:
|
|
|
|
|
- anvil
|
|
|
|
|
--port=8545
|
|
|
|
|
--host=0.0.0.0
|
|
|
|
|
--chain-id=1337
|
|
|
|
|
--accounts=1
|
|
|
|
|
--allow-origin=*
|
|
|
|
|
--block-time=12
|
|
|
|
|
--silent
|
|
|
|
|
--config-out=anvil-config.txt
|
|
|
|
|
networks:
|
|
|
|
|
- simulation
|
|
|
|
|
|
|
|
|
|
contract-repo-deployer:
|
|
|
|
|
image: node:hydrogen-bullseye
|
|
|
|
|
labels:
|
|
|
|
|
com.centurylinklabs.watchtower.enable: '${WATCHTOWER_ENABLED:-false}'
|
|
|
|
|
environment:
|
|
|
|
|
- RPC_URL=${RPC_URL:-http://foundry:8545}
|
|
|
|
|
entrypoint: sh
|
2024-03-26 14:15:16 +00:00
|
|
|
|
command:
|
2024-03-26 08:41:52 +00:00
|
|
|
|
- '/opt/deploy_rln_contract.sh'
|
|
|
|
|
volumes:
|
|
|
|
|
- ./deploy_rln_contract.sh:/opt/deploy_rln_contract.sh
|
|
|
|
|
depends_on:
|
|
|
|
|
- foundry
|
2024-02-23 08:48:02 +00:00
|
|
|
|
networks:
|
|
|
|
|
- simulation
|
|
|
|
|
|
2023-06-26 14:19:59 +00:00
|
|
|
|
bootstrap:
|
2023-11-01 14:39:07 +00:00
|
|
|
|
image: ${NWAKU_IMAGE:-wakuorg/nwaku:latest}
|
2023-06-26 14:19:59 +00:00
|
|
|
|
restart: on-failure
|
2023-09-26 11:56:30 +00:00
|
|
|
|
labels:
|
|
|
|
|
com.centurylinklabs.watchtower.enable: '${WATCHTOWER_ENABLED:-false}'
|
2023-06-26 14:19:59 +00:00
|
|
|
|
# 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
|
2024-03-12 11:02:04 +00:00
|
|
|
|
- 127.0.0.1:8645:8645
|
2023-06-26 14:19:59 +00:00
|
|
|
|
entrypoint: sh
|
|
|
|
|
command:
|
2024-03-26 08:41:52 +00:00
|
|
|
|
- '/opt/run_bootstrap.sh'
|
2023-06-26 14:19:59 +00:00
|
|
|
|
volumes:
|
|
|
|
|
- ./run_bootstrap.sh:/opt/run_bootstrap.sh:Z
|
2023-08-31 12:32:59 +00:00
|
|
|
|
networks:
|
|
|
|
|
- simulation
|
2024-03-26 14:15:16 +00:00
|
|
|
|
|
2023-06-26 14:19:59 +00:00
|
|
|
|
nwaku:
|
2023-11-01 14:39:07 +00:00
|
|
|
|
image: ${NWAKU_IMAGE:-wakuorg/nwaku:latest}
|
2023-06-26 14:19:59 +00:00
|
|
|
|
restart: on-failure
|
2023-09-26 11:56:30 +00:00
|
|
|
|
labels:
|
|
|
|
|
com.centurylinklabs.watchtower.enable: '${WATCHTOWER_ENABLED:-false}'
|
2023-06-26 14:19:59 +00:00
|
|
|
|
deploy:
|
2023-11-01 14:39:07 +00:00
|
|
|
|
replicas: ${NUM_NWAKU_NODES:-5}
|
2023-06-26 14:19:59 +00:00
|
|
|
|
entrypoint: sh
|
2024-03-14 11:35:25 +00:00
|
|
|
|
environment:
|
2024-03-26 08:41:52 +00:00
|
|
|
|
- RPC_URL=${RPC_URL:-http://foundry:8545}
|
2024-03-14 11:35:25 +00:00
|
|
|
|
- PRIVATE_KEY=0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80
|
|
|
|
|
- RLN_CONTRACT_ADDRESS=0x9fE46736679d2D9a65F0992F2272dE9f3c7fa6e0
|
|
|
|
|
- RLN_CREDENTIAL_PATH=/keystore.json
|
|
|
|
|
- RLN_CREDENTIAL_PASSWORD=passw123
|
2023-06-26 14:19:59 +00:00
|
|
|
|
command:
|
|
|
|
|
- '/opt/run_nwaku.sh'
|
|
|
|
|
volumes:
|
|
|
|
|
- ./run_nwaku.sh:/opt/run_nwaku.sh:Z
|
|
|
|
|
depends_on:
|
|
|
|
|
- bootstrap
|
2024-03-26 08:41:52 +00:00
|
|
|
|
- contract-repo-deployer
|
2023-08-31 12:32:59 +00:00
|
|
|
|
networks:
|
|
|
|
|
- simulation
|
2023-06-26 14:19:59 +00:00
|
|
|
|
|
2023-07-05 09:09:15 +00:00
|
|
|
|
gowaku:
|
2023-11-01 14:39:07 +00:00
|
|
|
|
image: ${GOWAKU_IMAGE:-wakuorg/go-waku:latest}
|
2023-07-05 09:09:15 +00:00
|
|
|
|
restart: on-failure
|
2023-09-26 11:56:30 +00:00
|
|
|
|
labels:
|
|
|
|
|
com.centurylinklabs.watchtower.enable: '${WATCHTOWER_ENABLED:-false}'
|
2023-07-05 09:09:15 +00:00
|
|
|
|
deploy:
|
2023-11-01 14:39:07 +00:00
|
|
|
|
replicas: ${NUM_GOWAKU_NODES:-0}
|
2023-07-05 09:09:15 +00:00
|
|
|
|
entrypoint: sh
|
|
|
|
|
command:
|
|
|
|
|
- '/opt/run_gowaku.sh'
|
|
|
|
|
volumes:
|
|
|
|
|
- ./run_gowaku.sh:/opt/run_gowaku.sh:Z
|
|
|
|
|
depends_on:
|
|
|
|
|
- bootstrap
|
2023-06-26 14:19:59 +00:00
|
|
|
|
|
2023-10-31 15:17:35 +00:00
|
|
|
|
rest-traffic:
|
|
|
|
|
build:
|
|
|
|
|
context: .
|
|
|
|
|
dockerfile: Dockerfile.rest-traffic
|
|
|
|
|
command: >
|
|
|
|
|
python /opt/traffic.py
|
2023-11-13 14:39:17 +00:00
|
|
|
|
--multiple-nodes=http://waku-simulator_nwaku_[1..${NUM_NWAKU_NODES:-5}]:8645
|
2023-10-31 15:17:35 +00:00
|
|
|
|
--msg-size-kbytes=${MSG_SIZE_KBYTES:-10}
|
|
|
|
|
--delay-seconds=${TRAFFIC_DELAY_SECONDS:-15}
|
2023-06-26 14:19:59 +00:00
|
|
|
|
volumes:
|
2023-10-31 15:17:35 +00:00
|
|
|
|
- ./traffic.py:/opt/traffic.py:Z
|
2023-08-31 12:32:59 +00:00
|
|
|
|
networks:
|
|
|
|
|
- simulation
|
2023-10-31 15:17:35 +00:00
|
|
|
|
depends_on:
|
|
|
|
|
- nwaku
|
2023-06-26 14:19:59 +00: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 12:32:59 +00:00
|
|
|
|
networks:
|
|
|
|
|
- simulation
|
2023-06-26 14:19:59 +00: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:
|
2024-03-26 14:15:16 +00:00
|
|
|
|
- 0.0.0.0:3001:3001
|
2023-06-26 14:19:59 +00:00
|
|
|
|
restart: on-failure
|
|
|
|
|
depends_on:
|
|
|
|
|
- prometheus
|
2023-08-31 12:32:59 +00:00
|
|
|
|
networks:
|
|
|
|
|
- simulation
|
2023-06-26 14:19:59 +00: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 12:32:59 +00:00
|
|
|
|
networks:
|
|
|
|
|
- simulation
|
2023-06-26 14:19:59 +00:00
|
|
|
|
|
|
|
|
|
redis:
|
|
|
|
|
image: redis:latest
|
|
|
|
|
container_name: redis
|
|
|
|
|
#ports:
|
|
|
|
|
# - 6379:6379
|
2023-08-31 12:32:59 +00:00
|
|
|
|
networks:
|
|
|
|
|
- simulation
|
2024-03-03 06:30:33 +00:00
|
|
|
|
|
|
|
|
|
api:
|
|
|
|
|
image: web3labs/epirus-free-api:latest
|
|
|
|
|
ports:
|
|
|
|
|
- 127.0.0.1:8090:8090
|
|
|
|
|
environment:
|
2024-03-26 08:41:52 +00:00
|
|
|
|
- NODE_ENDPOINT=${RPC_URL:-http://foundry:8545}
|
2024-03-03 06:30:33 +00:00
|
|
|
|
- MONGO_CLIENT_URI=mongodb://mongodb:27017
|
|
|
|
|
- REINDEX_ENDPOINT=http://ingestion/reindex/
|
|
|
|
|
- MONGO_DB_NAME=epirus
|
|
|
|
|
- MONGO_CREATE_INDICES=true
|
|
|
|
|
- REDIS_HOST=redis
|
|
|
|
|
- REDIS_PORT=6379
|
|
|
|
|
depends_on:
|
2024-03-26 14:15:16 +00:00
|
|
|
|
- redis
|
2024-03-03 06:30:33 +00:00
|
|
|
|
- mongodb
|
|
|
|
|
- foundry
|
|
|
|
|
networks:
|
|
|
|
|
- simulation
|
2024-03-26 14:15:16 +00:00
|
|
|
|
|
2024-03-03 06:30:33 +00:00
|
|
|
|
mongodb:
|
|
|
|
|
image: mongo:5.0.8
|
|
|
|
|
environment:
|
|
|
|
|
- COMPOSE_HTTP_TIMEOUT=900
|
|
|
|
|
- DOCKER_CLIENT_TIMEOUT=900
|
|
|
|
|
entrypoint: mongod --bind_ip "0.0.0.0"
|
|
|
|
|
networks:
|
|
|
|
|
- simulation
|
|
|
|
|
|
|
|
|
|
web:
|
|
|
|
|
image: web3labs/epirus-free-web:latest
|
|
|
|
|
ports:
|
2024-03-26 14:15:16 +00:00
|
|
|
|
- 0.0.0.0:3000:3000
|
2024-03-03 06:30:33 +00:00
|
|
|
|
environment:
|
|
|
|
|
- API_URL=http://localhost:8090
|
|
|
|
|
- WS_API_URL=ws://localhost:8090
|
|
|
|
|
- DISPLAY_NETWORK_TAB=disabled
|
|
|
|
|
depends_on:
|
|
|
|
|
- api
|
|
|
|
|
networks:
|
|
|
|
|
- simulation
|
2024-03-26 14:15:16 +00:00
|
|
|
|
|
2024-03-03 06:30:33 +00:00
|
|
|
|
ingestion:
|
|
|
|
|
image: web3labs/epirus-free-ingestion:latest
|
|
|
|
|
environment:
|
2024-03-26 08:41:52 +00:00
|
|
|
|
- NODE_ENDPOINT=${RPC_URL:-http://foundry:8545}
|
2024-03-03 06:30:33 +00:00
|
|
|
|
- MONGO_CLIENT_URI=mongodb://mongodb:27017
|
|
|
|
|
- MONGO_DB_NAME=epirus
|
|
|
|
|
- LIST_OF_METRICS_TO_CALCULATE_PER_MINUTE=hourly,daily,monthly,yearly
|
|
|
|
|
depends_on:
|
|
|
|
|
- mongodb
|
|
|
|
|
- redis
|
|
|
|
|
- foundry
|
|
|
|
|
networks:
|
2024-03-26 12:01:12 +00:00
|
|
|
|
- simulation
|