Skip to content
Snippets Groups Projects
Commit 71587add authored by David Hintermann's avatar David Hintermann
Browse files

Merge branch 'feat-add-relevant-metrics' into feat-add-rebalancer

parents 1ce248a7 1053c55f
No related branches found
No related tags found
1 merge request!10feat(rebalancer): rebalance automatically
...@@ -4,4 +4,4 @@ POSTGRES_HOST=postgres ...@@ -4,4 +4,4 @@ POSTGRES_HOST=postgres
POSTGRES_PORT=5432 POSTGRES_PORT=5432
POSTGRES_DB=roesticoin POSTGRES_DB=roesticoin
POSTGRES_USER=roesticoin POSTGRES_USER=roesticoin
PROMETHEUS_BASE_URL=http://prometheus:9000 PROMETHEUS_BASE_URL=http://prometheus:9000
\ No newline at end of file
<Project Sdk="Microsoft.NET.Sdk.Web"> <Project Sdk="Microsoft.NET.Sdk.Web">
<ItemGroup> <ItemGroup>
<PackageReference Include="DotNetEnv" Version="3.1.1" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="8.0.11" /> <PackageReference Include="Microsoft.EntityFrameworkCore" Version="8.0.11" />
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.21.0" /> <PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.21.0" />
<PackageReference Include="Nethereum.Web3" Version="4.26.0" /> <PackageReference Include="Nethereum.Web3" Version="4.26.0" />
......
...@@ -9,12 +9,15 @@ using Frontend.Metrics; ...@@ -9,12 +9,15 @@ using Frontend.Metrics;
using Nethereum.Web3; using Nethereum.Web3;
using Nethereum.Web3.Accounts; using Nethereum.Web3.Accounts;
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore;
using DotNetEnv;
using OpenTelemetry.Metrics; using OpenTelemetry.Metrics;
using OpenTelemetry.Resources; using OpenTelemetry.Resources;
using Org.BouncyCastle.Utilities; using Org.BouncyCastle.Utilities;
using System.Numerics; using System.Numerics;
// ensure the env file is loaded
Env.Load("../.env");
// the location differ in dev and releas mode. // the location differ in dev and releas mode.
var tokenAbiLocation = Environment.GetEnvironmentVariable("TOKEN_ABI_LOCATION")!; var tokenAbiLocation = Environment.GetEnvironmentVariable("TOKEN_ABI_LOCATION")!;
var tokenAbi = File.ReadAllText(tokenAbiLocation)!; var tokenAbi = File.ReadAllText(tokenAbiLocation)!;
......
...@@ -34,13 +34,21 @@ services: ...@@ -34,13 +34,21 @@ services:
POSTGRES_PASSWORD: roesticoin POSTGRES_PASSWORD: roesticoin
volumes: volumes:
- postgres_data:/var/lib/postgresql/data - postgres_data:/var/lib/postgresql/data
pgadmin:
image: dpage/pgadmin4
restart: unless-stopped
ports:
- "5050:80"
environment:
PGADMIN_DEFAULT_EMAIL: 'roesti@example.com'
PGADMIN_DEFAULT_PASSWORD: 'TheRoestiCoinsPgAdmin'
roesticoin: roesticoin:
env_file: env_file:
- .env - .env
ports: ports:
- 8080:8080 - 8080:8080
depends_on:
- postgres
volumes: volumes:
prometheus_data: prometheus_data:
postgres_data: postgres_data:
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment