Make RabbitMQ integration optional in Chill configuration
Introduced a new `rabbitmq_install` variable to conditionally enable RabbitMQ components in `compose.yaml`, `messenger.yaml`, and `env_file.env`. Updated related Ansible tasks to respect this variable.
This commit is contained in:
@@ -49,7 +49,9 @@ services:
|
||||
links:
|
||||
- redis
|
||||
- relatorio
|
||||
{% if chill.rabbitmq_install +%}
|
||||
- rabbitmq
|
||||
{%+ endif %}
|
||||
|
||||
{% if chill.add_postgres -%}
|
||||
- database
|
||||
@@ -137,6 +139,7 @@ services:
|
||||
# rabbitmq:
|
||||
# condition: service_healthy
|
||||
|
||||
{% if chill.rabbitmq_install +%}
|
||||
rabbitmq:
|
||||
image: "{{ chill_image_rabbitmq }}"
|
||||
env_file:
|
||||
@@ -149,6 +152,7 @@ services:
|
||||
networks:
|
||||
- default
|
||||
restart: always
|
||||
{% endif %}
|
||||
|
||||
networks:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user