From cdacf61f245430878cb26345876bfb98c71ea96a Mon Sep 17 00:00:00 2001 From: Tom Kralidis Date: Wed, 17 Apr 2024 08:38:54 -0400 Subject: [PATCH] rename ES container --- docker-compose.yml | 12 ++++++------ wis2-gdc.env | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 7f182b0..bd16588 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -20,8 +20,8 @@ ############################################################################### services: - elasticsearch: - container_name: elasticsearch + wis2-gdc-backend: + container_name: wis2-gdc-backend image: docker.elastic.co/elasticsearch/elasticsearch:8.6.2 restart: always environment: @@ -35,7 +35,7 @@ services: mem_limit: 1.5g memswap_limit: 1.5g volumes: - - es-data:/usr/share/elasticsearch/data:rw + - wis2-gdc-backend-data:/usr/share/elasticsearch/data:rw # ulimits: # nofile: # soft: 524288 @@ -112,10 +112,10 @@ services: environment: - WIS2_GDC_API_URL_DOCKER=http://wis2-gdc-api depends_on: - elasticsearch: + wis2-gdc-backend: condition: service_healthy healthcheck: - test: ["CMD", "curl", "-f", "http://elasticsearch:9200/wis2-discovery-metadata"] + test: ["CMD", "curl", "-f", "http://wis2-gdc-backend:9200/wis2-discovery-metadata"] interval: 5s retries: 3 volumes: @@ -146,7 +146,7 @@ services: - wis2-gdc-net volumes: - es-data: + wis2-gdc-backend-data: wis2-gdc-management-data: networks: diff --git a/wis2-gdc.env b/wis2-gdc.env index d4026f4..c5cc576 100644 --- a/wis2-gdc.env +++ b/wis2-gdc.env @@ -2,7 +2,7 @@ export WIS2_GDC_LOGGING_LEVEL=DEBUG export WIS2_GDC_API_URL=http://localhost export WIS2_GDC_API_URL_DOCKER=http://wis2-gdc-api export WIS2_GDC_BACKEND_TYPE=Elasticsearch -export WIS2_GDC_BACKEND_CONNECTION=http://elasticsearch:9200/wis2-discovery-metadata +export WIS2_GDC_BACKEND_CONNECTION=http://wis2-gdc-backend:9200/wis2-discovery-metadata export WIS2_GDC_BROKER_URL=mqtt://wis2-gdc:wis2-gdc@wis2-gdc-broker:1883 export WIS2_GDC_CENTRE_ID=ca-eccc-msc-global-discovery-catalogue export WIS2_GDC_COLLECTOR_URL=http://wis2-gdc-metrics-collector:8006