diff --git a/services/dashboard/docker-compose.infra.yml b/services/dashboard/docker-compose.infra.yml index d13f4219c..9d09e1750 100644 --- a/services/dashboard/docker-compose.infra.yml +++ b/services/dashboard/docker-compose.infra.yml @@ -4,6 +4,7 @@ volumes: grafana_data: {} victoria_metrics_data: {} postgres_data: {} + ypostgres_data: {} networks: stack: diff --git a/services/dashboard/docker-compose.yml b/services/dashboard/docker-compose.yml index 4454d8e41..446739c01 100644 --- a/services/dashboard/docker-compose.yml +++ b/services/dashboard/docker-compose.yml @@ -111,6 +111,13 @@ x-envs: &envs # DOCKER CONTAINER ENVS - CONTAINER_NAME + + - YPRICEMAGIC_DB_PROVIDER=postgres + - YPRICEMAGIC_DB_HOST=ypostgres + - YPRICEMAGIC_DB_PORT=5432 + - YPRICEMAGIC_DB_USER=${PGUSER:-postgres} + - YPRICEMAGIC_DB_PASSWORD=${PGPASSWORD:-yearn-exporter} + - YPRICEMAGIC_DB_DATABASE=${YPRICEMAGIC_DB_DATABASE:-postgres} x-volumes: &volumes - brownie:/root/.brownie @@ -127,6 +134,7 @@ services: - yearn-exporter-infra_stack external_links: - yearn-exporter-infra-postgres-1:postgres + - yearn-exporter-infra-ypostgres-1:ypostgres - yearn-exporter-infra-victoria-metrics-1:victoria-metrics logging: driver: "json-file"