Improve docker config

This commit is contained in:
Urtzi Alfaro
2025-07-20 02:16:51 +02:00
parent 9a67f3d175
commit 1c730c3c81
27 changed files with 2598 additions and 1161 deletions

View File

@@ -0,0 +1,94 @@
{
"rabbit_version": "3.12.0",
"rabbitmq_version": "3.12.0",
"product_name": "RabbitMQ",
"product_version": "3.12.0",
"users": [
{
"name": "bakery",
"password_hash": "hash_of_forecast123",
"hashing_algorithm": "rabbit_password_hashing_sha256",
"tags": ["administrator"]
}
],
"vhosts": [
{
"name": "/"
}
],
"permissions": [
{
"user": "bakery",
"vhost": "/",
"configure": ".*",
"write": ".*",
"read": ".*"
}
],
"exchanges": [
{
"name": "bakery_events",
"vhost": "/",
"type": "topic",
"durable": true,
"auto_delete": false,
"internal": false,
"arguments": {}
}
],
"queues": [
{
"name": "training_events",
"vhost": "/",
"durable": true,
"auto_delete": false,
"arguments": {
"x-message-ttl": 86400000
}
},
{
"name": "forecasting_events",
"vhost": "/",
"durable": true,
"auto_delete": false,
"arguments": {
"x-message-ttl": 86400000
}
},
{
"name": "notification_events",
"vhost": "/",
"durable": true,
"auto_delete": false,
"arguments": {
"x-message-ttl": 86400000
}
}
],
"bindings": [
{
"source": "bakery_events",
"vhost": "/",
"destination": "training_events",
"destination_type": "queue",
"routing_key": "training.*",
"arguments": {}
},
{
"source": "bakery_events",
"vhost": "/",
"destination": "forecasting_events",
"destination_type": "queue",
"routing_key": "forecasting.*",
"arguments": {}
},
{
"source": "bakery_events",
"vhost": "/",
"destination": "notification_events",
"destination_type": "queue",
"routing_key": "notification.*",
"arguments": {}
}
]
}

View File

@@ -0,0 +1,26 @@
# infrastructure/rabbitmq/rabbitmq.conf
# RabbitMQ configuration file
# Network settings
listeners.tcp.default = 5672
management.tcp.port = 15672
# Memory and disk thresholds
vm_memory_high_watermark.relative = 0.6
disk_free_limit.relative = 2.0
# Default user (will be overridden by environment variables)
default_user = bakery
default_pass = forecast123
default_vhost = /
# Management plugin
management.load_definitions = /etc/rabbitmq/definitions.json
# Logging
log.console = true
log.console.level = info
log.file = false
# Queue settings
queue_master_locator = min-masters