I need to add three exchanges into rabbitmq before the web service run in docker. My docker-compose.yml is like below:
version: '3'
services:
web:
build: .
command: python manage.py runserver 0.0.0.0:9070
volumes:
- .:/code
ports:
- "9070:8000"
depends_on:
-redis
-rabbitmq
links:
- rabbitmq
- redis
redis:
image: redis:latest
rabbitmq:
image: rabbitmq:3-management
ports:
- "5672:5672" # we forward this port because it's useful for debugging
- "15672:15672" # here, we can access rabbitmq management plugin'
Any idea to add the exchange into the yml script? The exchange name will be dataproc
, dataproc_output
and mlearning