From 4a2bc483ec983efb921ff7e702e87439d229cf02 Mon Sep 17 00:00:00 2001 From: TheNewAutonomy Date: Thu, 24 Oct 2024 15:09:11 +0100 Subject: [PATCH] Moved values out to .env --- docker-compose-client.yml | 12 ++++++------ docker-compose.yml | 8 ++++---- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/docker-compose-client.yml b/docker-compose-client.yml index 5dac16f..7fc4c40 100644 --- a/docker-compose-client.yml +++ b/docker-compose-client.yml @@ -1,15 +1,15 @@ services: stats-client: container_name: stats-client - image: stats-client:latest + image: thenewautonomy/moksha-stats-dashboard:latest volumes: - - /var/run/docker.sock:/var/run/docker.sock + - /var/run/docker.sock:/var/run/docker.sock restart: unless-stopped environment: - - STATS_SERVER_URL=ws://localhost:3000 # Address of the stats server + - STATS_SERVER_URL=${STATS_SERVER_URL} - GETH_URL=ws://geth:8546 - - INSTANCE_NAME= # Name of your node displayed on the stats dashboard - - WS_SECRET= # Secret defined on the stats server + - INSTANCE_NAME=${INSTANCE_NAME} + - WS_SECRET=${WS_SECRET} - BEACON_NODE_API=http://beacon:3500/eth/v1/beacon/states/head - - PUBLIC_KEY= + - PUBLIC_KEY=${PUBLIC_KEY} profiles: ["monitoring"] diff --git a/docker-compose.yml b/docker-compose.yml index f6ba5ed..394cecc 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -209,12 +209,12 @@ services: - /var/run/docker.sock:/var/run/docker.sock restart: unless-stopped environment: - - STATS_SERVER_URL=ws://localhost:3000 # Address of the stats server + - STATS_SERVER_URL=${STATS_SERVER_URL} - GETH_URL=ws://geth:8546 - - INSTANCE_NAME= # Name of your node displayed on the stats dashboard - - WS_SECRET= # Secret defined on the stats server + - INSTANCE_NAME=${INSTANCE_NAME} + - WS_SECRET=${WS_SECRET} - BEACON_NODE_API=http://beacon:3500/eth/v1/beacon/states/head - - PUBLIC_KEY= + - PUBLIC_KEY=${PUBLIC_KEY} depends_on: geth: condition: service_started