2023-06-26 16:19:59 +02:00
|
|
|
|
version: "3.7"
|
|
|
|
|
|
|
2025-03-17 02:01:08 +01:00
|
|
|
|
x-bootstrap-environment: &bootstrap_env
|
|
|
|
|
|
BOOTSTRAP_IP: 10.2.0.100
|
|
|
|
|
|
BOOTSTRAP_MULTIADDRESS: "/ip4/10.2.0.100/tcp/60000/p2p/16Uiu2HAmGNtM2rQ8abySFNhqPDFY4cmfAEpfo9Z9fD3NekoFR2ip"
|
|
|
|
|
|
BOOTSTRAP_ENR: "enr:-LG4QK3uc1orOi79J5eAprzwyfj4QcYaR_oamz1YY0U3PmaRY807UrJTkQJiSDT8PNmIPwxIw9POrel-sf1OOTlcK9UCgmlkgnY0gmlwhAoCAGSKbXVsdGlhZGRyc4oACAQKAgBkBupggnJzhQBCAQAAiXNlY3AyNTZrMaEDN06qX-XhZ-Cc7ZuIAdGNCVUicscmbFvEEfkFOQ2W_j2DdGNwgupgg3VkcIIjKIV3YWt1MgA"
|
|
|
|
|
|
|
|
|
|
|
|
x-servicenode-environment: &servicenode_env
|
|
|
|
|
|
SERVICENODE_IP: 10.2.0.101
|
|
|
|
|
|
SERVICENODE_MULTIADDRESS: "/ip4/10.2.0.101/tcp/60001/p2p/16Uiu2HAkyte8uj451tGkbww4Mjcg6DRnmAHxNeWyF4zp23RbpG3n"
|
|
|
|
|
|
SERVICENODE_WS_MULTIADDRESS: "/ip4/10.2.0.101/tcp/8000/ws/p2p/16Uiu2HAkyte8uj451tGkbww4Mjcg6DRnmAHxNeWyF4zp23RbpG3n"
|
|
|
|
|
|
SERVICENODE_ENR: "enr:-LO4QDhRxZ-YJBeiriq07BkSiA-qSJCcy3Kz7bAWXeop48dIPpsQK2QNuDX7umonw3Wu0zFXXoMxGrIFmpQiJ1mBd_sBgmlkgnY0gmlwhAoCAGWKbXVsdGlhZGRyc4wACgQKAgBlBh9A3QOCcnOFAEIBAACJc2VjcDI1NmsxoQJCV1iKpD3kj-6EDB8QIiRtUZE3-g0OK1QbmXL2OoziNYN0Y3CC6mCDdWRwgiMohXdha3UyDw"
|
|
|
|
|
|
|
|
|
|
|
|
x-edgenode-environment: &edgenode_env
|
|
|
|
|
|
EDGENODE_IP: 10.2.0.102
|
|
|
|
|
|
EDGENODE_MULTIADDRESS: "/ip4/10.2.0.102/tcp/60002/p2p/16Uiu2HAm5tojCrfxXrum5VxAVtCQk6h1jkA2Ecy447rQkKwwgf51"
|
|
|
|
|
|
EDGENODE_ENR: "enr:-KC4QAsSQM0tP9Zs8UxbHl3pe7HKE_0xLNA2P5LLVCbzCArsATKeH6EK43hhQJznAKjaMcpzqbMcd3UEjYJSkahMyg4BgmlkgnY0gmlwhAoCAGaKbXVsdGlhZGRyc4CCcnOFAEIBAACJc2VjcDI1NmsxoQKbiE_1i7pL24P02qgEFs0jHaso1XPo8HmcXAfqJPjGeIN0Y3CC6mKFd2FrdTIA"
|
|
|
|
|
|
|
|
|
|
|
|
x-rln-environment: &rln_env
|
2025-03-22 14:51:16 +01:00
|
|
|
|
RLN_ENABLED: ${RLN_ENABLED:-true}
|
2025-03-17 02:01:08 +01:00
|
|
|
|
RPC_URL: ${RPC_URL:-http://foundry:8545}
|
|
|
|
|
|
RLN_CONTRACT_ADDRESS: 0xCf7Ed3AccA5a467e9e704C703E8D87F634fB0Fc9
|
|
|
|
|
|
RLN_CREDENTIAL_PATH: /keystore.json
|
|
|
|
|
|
RLN_CREDENTIAL_PASSWORD: passw123
|
|
|
|
|
|
RLN_RELAY_MSG_LIMIT: ${RLN_RELAY_MSG_LIMIT:-10}
|
|
|
|
|
|
RLN_RELAY_EPOCH_SEC: ${RLN_RELAY_EPOCH_SEC:-60}
|
|
|
|
|
|
|
|
|
|
|
|
x-pg-pass: &pg_pass test123
|
|
|
|
|
|
x-pg-user: &pg_user postgres
|
|
|
|
|
|
|
|
|
|
|
|
x-pg-environment: &pg_env
|
|
|
|
|
|
POSTGRES_USER: *pg_user
|
|
|
|
|
|
POSTGRES_PASSWORD: *pg_pass
|
|
|
|
|
|
|
|
|
|
|
|
x-pg-exporter-env: &pg_exp_env
|
|
|
|
|
|
environment:
|
|
|
|
|
|
POSTGRES_PASSWORD: *pg_pass
|
|
|
|
|
|
DATA_SOURCE_URI: postgres?sslmode=disable
|
|
|
|
|
|
DATA_SOURCE_USER: *pg_user
|
|
|
|
|
|
DATA_SOURCE_PASS: *pg_pass
|
|
|
|
|
|
PG_EXPORTER_EXTEND_QUERY_PATH: /etc/pgexporter/queries.yml
|
|
|
|
|
|
|
2023-08-31 14:32:59 +02:00
|
|
|
|
networks:
|
|
|
|
|
|
simulation:
|
2025-03-27 17:01:59 +01:00
|
|
|
|
name: simulation
|
2025-03-17 02:01:08 +01:00
|
|
|
|
driver: bridge
|
|
|
|
|
|
ipam:
|
|
|
|
|
|
driver: default
|
|
|
|
|
|
config:
|
|
|
|
|
|
- subnet: "10.2.0.0/24"
|
2023-08-31 14:32:59 +02:00
|
|
|
|
|
2023-06-26 16:19:59 +02:00
|
|
|
|
services:
|
|
|
|
|
|
|
2024-06-25 11:13:38 +02:00
|
|
|
|
# Accounts are hardcoded to 520 with the idea that nwaku nodes use up to 500 for membership registration and the last 20 are used for ad-hoc testing.
|
|
|
|
|
|
# The account number and private key pairs of the last 20 accounts can be found in the Register memberships section of the Waku-simulator book.
|
2024-02-23 10:48:02 +02:00
|
|
|
|
foundry:
|
|
|
|
|
|
image: ghcr.io/foundry-rs/foundry:nightly-9b73e06e1fe376738b92ae081107620291d50188
|
|
|
|
|
|
labels:
|
2025-03-17 15:49:10 +01:00
|
|
|
|
com.centurylinklabs.watchtower.enable: '${WATCHTOWER_ENABLED:-true}'
|
2024-03-03 08:30:33 +02:00
|
|
|
|
ports:
|
2024-03-26 13:01:12 +01:00
|
|
|
|
- 0.0.0.0:8545:8545
|
2024-03-26 10:41:52 +02:00
|
|
|
|
command:
|
|
|
|
|
|
- anvil
|
|
|
|
|
|
--port=8545
|
|
|
|
|
|
--host=0.0.0.0
|
2024-06-25 11:13:38 +02:00
|
|
|
|
--accounts=520
|
2024-03-26 10:41:52 +02:00
|
|
|
|
--allow-origin=*
|
|
|
|
|
|
--block-time=12
|
2024-06-07 10:13:45 +02:00
|
|
|
|
--chain-id=1234
|
2024-03-26 10:41:52 +02:00
|
|
|
|
--silent
|
2024-05-28 16:20:17 +02:00
|
|
|
|
--config-out=/shared/anvil-config.txt
|
|
|
|
|
|
volumes:
|
|
|
|
|
|
- privatekeys-volume:/shared
|
2024-03-26 10:41:52 +02:00
|
|
|
|
networks:
|
|
|
|
|
|
- simulation
|
|
|
|
|
|
|
|
|
|
|
|
contract-repo-deployer:
|
|
|
|
|
|
image: node:hydrogen-bullseye
|
|
|
|
|
|
labels:
|
2025-03-17 15:49:10 +01:00
|
|
|
|
com.centurylinklabs.watchtower.enable: '${WATCHTOWER_ENABLED:-true}'
|
2024-03-26 10:41:52 +02:00
|
|
|
|
environment:
|
2024-12-04 16:22:11 +02:00
|
|
|
|
- RLN_CONTRACT_REPO_COMMIT=${RLN_CONTRACT_REPO_COMMIT:-64df4593c6a14e43b8b0e9b396d2f4772bb08b34}
|
2025-03-17 15:49:10 +01:00
|
|
|
|
- PRIVATE_KEY=${PRIVATE_KEY:-0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80}
|
2024-03-26 10:41:52 +02:00
|
|
|
|
- RPC_URL=${RPC_URL:-http://foundry:8545}
|
2025-03-17 15:49:10 +01:00
|
|
|
|
- ETH_FROM=${ETH_FROM:-0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266}
|
2024-06-20 15:39:19 +02:00
|
|
|
|
- MAX_MESSAGE_LIMIT=${MAX_MESSAGE_LIMIT:-20}
|
2024-03-26 10:41:52 +02:00
|
|
|
|
entrypoint: sh
|
2024-03-26 15:15:16 +01:00
|
|
|
|
command:
|
2024-03-26 10:41:52 +02:00
|
|
|
|
- '/opt/deploy_rln_contract.sh'
|
|
|
|
|
|
volumes:
|
|
|
|
|
|
- ./deploy_rln_contract.sh:/opt/deploy_rln_contract.sh
|
|
|
|
|
|
depends_on:
|
|
|
|
|
|
- foundry
|
2024-02-23 10:48:02 +02:00
|
|
|
|
networks:
|
|
|
|
|
|
- simulation
|
|
|
|
|
|
|
2023-06-26 16:19:59 +02:00
|
|
|
|
bootstrap:
|
2023-11-01 16:39:07 +02:00
|
|
|
|
image: ${NWAKU_IMAGE:-wakuorg/nwaku:latest}
|
2025-03-27 17:01:59 +01:00
|
|
|
|
# container_name: bootstrap
|
2023-06-26 16:19:59 +02:00
|
|
|
|
restart: on-failure
|
2023-09-26 13:56:30 +02:00
|
|
|
|
labels:
|
2025-03-17 15:49:10 +01:00
|
|
|
|
com.centurylinklabs.watchtower.enable: '${WATCHTOWER_ENABLED:-true}'
|
2023-06-26 16:19:59 +02: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
|
2025-03-17 02:01:08 +01:00
|
|
|
|
- 127.0.0.1:8646:8645
|
2023-06-26 16:19:59 +02:00
|
|
|
|
entrypoint: sh
|
|
|
|
|
|
command:
|
2024-03-26 10:41:52 +02:00
|
|
|
|
- '/opt/run_bootstrap.sh'
|
2023-06-26 16:19:59 +02:00
|
|
|
|
volumes:
|
|
|
|
|
|
- ./run_bootstrap.sh:/opt/run_bootstrap.sh:Z
|
2023-08-31 14:32:59 +02:00
|
|
|
|
networks:
|
2025-03-17 02:01:08 +01:00
|
|
|
|
simulation:
|
|
|
|
|
|
ipv4_address: 10.2.0.100
|
|
|
|
|
|
|
|
|
|
|
|
servicenode:
|
|
|
|
|
|
image: ${NWAKU_IMAGE:-wakuorg/nwaku:latest}
|
2025-03-27 17:01:59 +01:00
|
|
|
|
# container_name: servicenode
|
2025-03-29 02:06:13 +01:00
|
|
|
|
cpuset: ${SERVICENODE_CPU_CORES:-"4"}
|
|
|
|
|
|
mem_limit: ${SERVICENODE_MEM_LIMIT:-512m}
|
2025-03-17 02:01:08 +01:00
|
|
|
|
restart: on-failure
|
|
|
|
|
|
labels:
|
2025-03-17 15:49:10 +01:00
|
|
|
|
com.centurylinklabs.watchtower.enable: '${WATCHTOWER_ENABLED:-true}'
|
2025-03-17 02:01:08 +01:00
|
|
|
|
ports:
|
|
|
|
|
|
- 127.0.0.1:60001:60001/tcp
|
|
|
|
|
|
- 127.0.0.1:60001:60001/udp
|
|
|
|
|
|
- 127.0.0.1:8000:8000/tcp #WSS
|
|
|
|
|
|
- 127.0.0.1:8645:8645 # Service node REST-API
|
|
|
|
|
|
environment:
|
|
|
|
|
|
NODEKEY: ${NODEKEY}
|
|
|
|
|
|
STORAGE_SIZE: ${STORAGE_SIZE}
|
|
|
|
|
|
<<:
|
|
|
|
|
|
- *pg_env
|
|
|
|
|
|
- *rln_env
|
|
|
|
|
|
- *bootstrap_env
|
|
|
|
|
|
volumes:
|
|
|
|
|
|
- ./run_servicenode.sh:/opt/run_servicenode.sh:Z
|
|
|
|
|
|
- privatekeys-volume:/shared
|
|
|
|
|
|
entrypoint: sh
|
|
|
|
|
|
command:
|
|
|
|
|
|
- /opt/run_servicenode.sh
|
|
|
|
|
|
depends_on:
|
|
|
|
|
|
contract-repo-deployer:
|
|
|
|
|
|
condition: service_completed_successfully
|
|
|
|
|
|
postgres:
|
|
|
|
|
|
condition: service_started
|
|
|
|
|
|
networks:
|
|
|
|
|
|
simulation:
|
|
|
|
|
|
ipv4_address: 10.2.0.101
|
2024-03-26 15:15:16 +01:00
|
|
|
|
|
2023-06-26 16:19:59 +02:00
|
|
|
|
nwaku:
|
2023-11-01 16:39:07 +02:00
|
|
|
|
image: ${NWAKU_IMAGE:-wakuorg/nwaku:latest}
|
2023-06-26 16:19:59 +02:00
|
|
|
|
restart: on-failure
|
2023-09-26 13:56:30 +02:00
|
|
|
|
labels:
|
2025-03-17 15:49:10 +01:00
|
|
|
|
com.centurylinklabs.watchtower.enable: '${WATCHTOWER_ENABLED:-true}'
|
2023-06-26 16:19:59 +02:00
|
|
|
|
deploy:
|
2023-11-01 16:39:07 +02:00
|
|
|
|
replicas: ${NUM_NWAKU_NODES:-5}
|
2023-06-26 16:19:59 +02:00
|
|
|
|
entrypoint: sh
|
2024-03-14 13:35:25 +02:00
|
|
|
|
environment:
|
2025-03-17 02:01:08 +01:00
|
|
|
|
<<:
|
|
|
|
|
|
- *rln_env
|
|
|
|
|
|
- *bootstrap_env
|
2023-06-26 16:19:59 +02:00
|
|
|
|
command:
|
|
|
|
|
|
- '/opt/run_nwaku.sh'
|
|
|
|
|
|
volumes:
|
|
|
|
|
|
- ./run_nwaku.sh:/opt/run_nwaku.sh:Z
|
2024-05-28 16:20:17 +02:00
|
|
|
|
- privatekeys-volume:/shared
|
2023-06-26 16:19:59 +02:00
|
|
|
|
depends_on:
|
2024-05-16 08:57:23 +02:00
|
|
|
|
contract-repo-deployer:
|
|
|
|
|
|
condition: service_completed_successfully
|
2023-08-31 14:32:59 +02:00
|
|
|
|
networks:
|
|
|
|
|
|
- simulation
|
2025-03-17 02:01:08 +01:00
|
|
|
|
|
|
|
|
|
|
edgenode:
|
|
|
|
|
|
image: ${NWAKU_IMAGE:-wakuorg/nwaku:latest}
|
2025-03-27 17:01:59 +01:00
|
|
|
|
# container_name: edgenode
|
2025-03-17 02:01:08 +01:00
|
|
|
|
restart: on-failure
|
|
|
|
|
|
ports:
|
|
|
|
|
|
- 127.0.0.1:60002:60002/tcp
|
|
|
|
|
|
- 127.0.0.1:60002:60002/udp
|
|
|
|
|
|
- 127.0.0.1:8644:8645 # Service node REST-API
|
|
|
|
|
|
entrypoint: sh
|
|
|
|
|
|
environment:
|
|
|
|
|
|
<<:
|
|
|
|
|
|
- *servicenode_env
|
2024-06-10 18:44:35 +02:00
|
|
|
|
command:
|
2025-03-17 02:01:08 +01:00
|
|
|
|
- '/opt/run_edgenode.sh'
|
|
|
|
|
|
volumes:
|
|
|
|
|
|
- ./run_edgenode.sh:/opt/run_edgenode.sh:Z
|
2023-10-31 17:17:35 +02:00
|
|
|
|
depends_on:
|
2025-03-17 02:01:08 +01:00
|
|
|
|
servicenode:
|
|
|
|
|
|
condition: service_started
|
|
|
|
|
|
networks:
|
|
|
|
|
|
simulation:
|
|
|
|
|
|
ipv4_address: 10.2.0.102
|
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
|
2024-05-27 08:29:49 +02:00
|
|
|
|
environment:
|
|
|
|
|
|
- GF_SECURITY_ADMIN_USER=${GF_SECURITY_ADMIN_USER}
|
|
|
|
|
|
- GF_SECURITY_ADMIN_PASSWORD=${GF_SECURITY_ADMIN_PASSWORD}
|
2023-06-26 16:19:59 +02:00
|
|
|
|
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 15:15:16 +01:00
|
|
|
|
- 0.0.0.0:3001:3001
|
2023-06-26 16:19:59 +02:00
|
|
|
|
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
|
2024-03-03 08:30:33 +02:00
|
|
|
|
|
|
|
|
|
|
api:
|
|
|
|
|
|
image: web3labs/epirus-free-api:latest
|
|
|
|
|
|
ports:
|
|
|
|
|
|
- 127.0.0.1:8090:8090
|
|
|
|
|
|
environment:
|
2024-03-26 10:41:52 +02:00
|
|
|
|
- NODE_ENDPOINT=${RPC_URL:-http://foundry:8545}
|
2024-03-03 08:30:33 +02: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 15:15:16 +01:00
|
|
|
|
- redis
|
2024-03-03 08:30:33 +02:00
|
|
|
|
- mongodb
|
|
|
|
|
|
- foundry
|
|
|
|
|
|
networks:
|
|
|
|
|
|
- simulation
|
2024-03-26 15:15:16 +01:00
|
|
|
|
|
2024-03-03 08:30:33 +02: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
|
|
|
|
|
|
environment:
|
2024-06-07 16:53:01 +02:00
|
|
|
|
- API_URL=${EPIRUS_WEB_API_URL:-/api}
|
2024-03-28 11:51:47 +01:00
|
|
|
|
- WS_API_URL=${EPIRUS_WEB_WS_API_URL:-ws://localhost:8090}
|
2024-03-03 08:30:33 +02:00
|
|
|
|
- DISPLAY_NETWORK_TAB=disabled
|
|
|
|
|
|
depends_on:
|
|
|
|
|
|
- api
|
|
|
|
|
|
networks:
|
|
|
|
|
|
- simulation
|
2024-03-26 15:15:16 +01:00
|
|
|
|
|
2024-03-03 08:30:33 +02:00
|
|
|
|
ingestion:
|
|
|
|
|
|
image: web3labs/epirus-free-ingestion:latest
|
|
|
|
|
|
environment:
|
2024-03-26 10:41:52 +02:00
|
|
|
|
- NODE_ENDPOINT=${RPC_URL:-http://foundry:8545}
|
2024-03-03 08:30:33 +02: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-05-28 16:20:17 +02:00
|
|
|
|
- simulation
|
|
|
|
|
|
|
2024-06-07 16:53:01 +02:00
|
|
|
|
nginx:
|
|
|
|
|
|
image: nginx:latest
|
|
|
|
|
|
volumes:
|
|
|
|
|
|
- ./nginx.conf:/etc/nginx/nginx.conf
|
|
|
|
|
|
- ./5xx.html:/www/error_pages/5xx.html
|
|
|
|
|
|
ports:
|
|
|
|
|
|
- 0.0.0.0:3000:80
|
|
|
|
|
|
depends_on:
|
|
|
|
|
|
- api
|
|
|
|
|
|
- web
|
|
|
|
|
|
networks:
|
|
|
|
|
|
- simulation
|
|
|
|
|
|
|
2025-03-17 02:01:08 +01:00
|
|
|
|
postgres:
|
|
|
|
|
|
# This service is used when the Waku node has the 'store' protocol enabled
|
|
|
|
|
|
# and the store-message-db-url is set to use Postgres
|
|
|
|
|
|
image: postgres:15.4-alpine3.18
|
2025-03-29 02:06:13 +01:00
|
|
|
|
cpuset: ${POSTGRES_CPU_CORES:-"4"}
|
|
|
|
|
|
mem_limit: ${POSTGRES_MEM_LIMIT:-2g}
|
2025-03-17 02:01:08 +01:00
|
|
|
|
restart: on-failure:5
|
|
|
|
|
|
shm_size: "${POSTGRES_SHM:-1g}" # Set default shared memory size to 1 GB
|
|
|
|
|
|
environment:
|
|
|
|
|
|
<<: *pg_env
|
|
|
|
|
|
volumes:
|
|
|
|
|
|
- ./postgres_cfg/postgresql.conf:/etc/postgresql/postgresql.conf:Z
|
|
|
|
|
|
- ./postgres_cfg/db.sql:/docker-entrypoint-initdb.d/db.sql:Z
|
|
|
|
|
|
- ${PG_DATA_DIR:-./postgresql}:/var/lib/postgresql/data:Z
|
|
|
|
|
|
command: postgres -c config_file=/etc/postgresql/postgresql.conf
|
|
|
|
|
|
ports:
|
|
|
|
|
|
- 127.0.0.1:5432:5432
|
|
|
|
|
|
healthcheck:
|
|
|
|
|
|
test: ["CMD-SHELL", "pg_isready -U postgres -d postgres"]
|
|
|
|
|
|
interval: 30s
|
|
|
|
|
|
timeout: 60s
|
|
|
|
|
|
retries: 5
|
|
|
|
|
|
start_period: 80s
|
|
|
|
|
|
networks:
|
|
|
|
|
|
- simulation
|
|
|
|
|
|
|
|
|
|
|
|
postgres-exporter:
|
|
|
|
|
|
# Service aimed to scrape information from Postgres and post it to Prometeus
|
|
|
|
|
|
image: quay.io/prometheuscommunity/postgres-exporter:v0.12.0
|
|
|
|
|
|
restart: on-failure:5
|
|
|
|
|
|
<<: *pg_exp_env
|
|
|
|
|
|
volumes:
|
|
|
|
|
|
- ./monitoring/configuration/postgres-exporter.yml:/etc/pgexporter/postgres-exporter.yml:Z
|
|
|
|
|
|
- ./monitoring/configuration/pg-exporter-queries.yml:/etc/pgexporter/queries.yml:Z
|
|
|
|
|
|
command:
|
|
|
|
|
|
# Both the config file and 'DATA_SOURCE_NAME' should contain valid connection info
|
|
|
|
|
|
- --config.file=/etc/pgexporter/postgres-exporter.yml
|
|
|
|
|
|
depends_on:
|
|
|
|
|
|
- postgres
|
|
|
|
|
|
networks:
|
|
|
|
|
|
- simulation
|
|
|
|
|
|
|
2024-05-28 16:20:17 +02:00
|
|
|
|
volumes:
|
|
|
|
|
|
privatekeys-volume:
|