replace rabbitmq with redis

* local awx docker-compose and image build only.
This commit is contained in:
chris meyers
2020-02-11 09:10:34 -05:00
committed by Ryan Petrello
parent be58906aed
commit e94bb44082
9 changed files with 22 additions and 54 deletions

View File

@@ -10,17 +10,13 @@ DATABASES = {
}
}
BROKER_URL = 'amqp://{}:{}@{}:{}/{}'.format(
"{{ rabbitmq_user }}",
"{{ rabbitmq_password }}",
"{{ rabbitmq_hostname | default('rabbitmq')}}",
"{{ rabbitmq_port }}",
"{{ rabbitmq_default_vhost }}")
BROKER_URL = 'redis://{}:{}/'.format(
"{{ redis_hostname }}",
"{{ redis_port }}",)
CHANNEL_LAYERS = {
'default': {'BACKEND': 'asgi_amqp.AMQPChannelLayer',
'ROUTING': 'awx.main.routing.channel_routing',
'CONFIG': {'url': BROKER_URL}}
'default': {'BACKEND': 'awx.main.channels.RedisGroupBroadcastChannelLayer',
'CONFIG': {'hosts': [("{{ redis_hostname }}", {{ redis_port|int }})]}}
}
CACHES = {