Skip to content

Commit

Permalink
Configure RabbitMQ for search APIs
Browse files Browse the repository at this point in the history
- Change `search-api` to use `RABBITMQ_URL` instead of deprecated
  individual environment variables
- Add `RABBITMQ_URL` and RabbitMQ dependency to `search-api-v2`
  • Loading branch information
csutter committed Sep 14, 2023
1 parent 62104db commit 1659020
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
2 changes: 2 additions & 0 deletions projects/search-api-v2/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ services:
<<: *search-api-v2
depends_on:
- nginx-proxy
- rabbitmq
environment:
RABBITMQ_URL: amqp://guest:guest@rabbitmq:5672
RAILS_DEVELOPMENT_HOSTS: search-api-v2.dev.gov.uk
VIRTUAL_HOST: search-api-v2.dev.gov.uk
BINDING: 0.0.0.0
Expand Down
10 changes: 2 additions & 8 deletions projects/search-api/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,7 @@ x-search-api: &search-api
- root-home:/root
working_dir: /govuk/search-api
environment:
RABBITMQ_HOSTS: rabbitmq
RABBITMQ_VHOST: /
RABBITMQ_USER: guest
RABBITMQ_PASSWORD: guest
RABBITMQ_URL: amqp://guest:guest@rabbitmq:5672
REDIS_URL: redis://redis
ELASTICSEARCH_URI: http://elasticsearch-6:9200

Expand All @@ -38,10 +35,7 @@ services:
- search-api-listener-insert-data
- search-api-listener-bulk-insert-data
environment:
RABBITMQ_HOSTS: rabbitmq
RABBITMQ_VHOST: /
RABBITMQ_USER: guest
RABBITMQ_PASSWORD: guest
RABBITMQ_URL: amqp://guest:guest@rabbitmq:5672
REDIS_URL: redis://redis
ELASTICSEARCH_URI: http://elasticsearch-6:9200
VIRTUAL_HOST: search-api.dev.gov.uk, search.dev.gov.uk
Expand Down

0 comments on commit 1659020

Please sign in to comment.