Skip to content

Commit

Permalink
Make MQ name for search-api-v2 configurable
Browse files Browse the repository at this point in the history
This adds an environment variable `PUBLISH_EVENT_MESSAGE_QUEUE_NAME` to
the configuration to remove a magic string from the application.
  • Loading branch information
csutter committed Sep 20, 2023
1 parent f1640af commit 5c40382
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions projects/search-api-v2/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ services:
- rabbitmq
environment:
RABBITMQ_URL: amqp://guest:guest@rabbitmq
PUBLISH_EVENT_MESSAGE_QUEUE_NAME: search_api_v2_published_documents

search-api-v2-app:
<<: *search-api-v2
Expand All @@ -30,6 +31,7 @@ services:
- search-api-v2-worker-consume-published-documents
environment:
RABBITMQ_URL: amqp://guest:guest@rabbitmq
PUBLISH_EVENT_MESSAGE_QUEUE_NAME: search_api_v2_published_documents
RAILS_DEVELOPMENT_HOSTS: search-api-v2.dev.gov.uk
VIRTUAL_HOST: search-api-v2.dev.gov.uk
BINDING: 0.0.0.0
Expand All @@ -43,4 +45,5 @@ services:
- rabbitmq
environment:
RABBITMQ_URL: amqp://guest:guest@rabbitmq
PUBLISH_EVENT_MESSAGE_QUEUE_NAME: search_api_v2_published_documents
command: bin/rails message_queue:consume_published_documents

0 comments on commit 5c40382

Please sign in to comment.