Skip to content

Commit

Permalink
Merge pull request #774 from alphagov/sav2-ds
Browse files Browse the repository at this point in the history
Search API v2: Add datastore env config
  • Loading branch information
csutter authored Aug 22, 2024
2 parents f96d9bd + c2d9a3d commit a54c088
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions projects/search-api-v2/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ services:
RABBITMQ_URL: amqp://guest:guest@rabbitmq
REDIS_URL: redis://redis
PUBLISHED_DOCUMENTS_MESSAGE_QUEUE_NAME: search_api_v2_published_documents
DISCOVERY_ENGINE_DATASTORE: none
DISCOVERY_ENGINE_DATASTORE_BRANCH: none
DISCOVERY_ENGINE_SERVING_CONFIG: none

Expand All @@ -44,9 +45,10 @@ services:
RAILS_DEVELOPMENT_HOSTS: "search-api-v2.dev.gov.uk,search-api-v2-app"
VIRTUAL_HOST: "search-api-v2.dev.gov.uk"
BINDING: "0.0.0.0"
# The fully qualified ID of the datastore branch and engine on the Discovery Engine integration
# The fully qualified ID of the datastore, branch and engine on the Discovery Engine integration
# environment (required to use Discovery Engine locally).
#
DISCOVERY_ENGINE_DATASTORE: "projects/search-api-v2-integration/locations/global/collections/default_collection/dataStores/govuk_content"
DISCOVERY_ENGINE_DATASTORE_BRANCH: "projects/search-api-v2-integration/locations/global/collections/default_collection/dataStores/govuk_content/branches/default_branch"
DISCOVERY_ENGINE_SERVING_CONFIG: "projects/search-api-v2-integration/locations/global/collections/default_collection/dataStores/govuk_content/servingConfigs/default_search"
expose:
Expand All @@ -62,9 +64,10 @@ services:
RABBITMQ_URL: "amqp://guest:guest@rabbitmq"
REDIS_URL: redis://redis
PUBLISHED_DOCUMENTS_MESSAGE_QUEUE_NAME: "search_api_v2_published_documents"
# The fully qualified ID of the datastore branch and serving config on the Discovery Engine
# The fully qualified ID of the datastore, branch and serving config on the Discovery Engine
# integration environment (required to use Discovery Engine locally).
#
DISCOVERY_ENGINE_DATASTORE: "projects/search-api-v2-integration/locations/global/collections/default_collection/dataStores/govuk_content"
DISCOVERY_ENGINE_DATASTORE_BRANCH: "projects/search-api-v2-integration/locations/global/collections/default_collection/dataStores/govuk_content/branches/default_branch"
DISCOVERY_ENGINE_SERVING_CONFIG: "projects/search-api-v2-integration/locations/global/collections/default_collection/dataStores/govuk_content/servingConfigs/default_search"
command: bin/rake document_sync_worker:run

0 comments on commit a54c088

Please sign in to comment.