fix: RabbitMQ ulanish manzilini yangilandi

This commit is contained in:
A'zamov Samandar
2025-04-20 16:22:35 +05:00
parent bffcc25df9
commit eae9f23267
2 changed files with 3 additions and 2 deletions

View File

@@ -112,7 +112,8 @@ services:
rabbitmq:
image: rabbitmq:management
container_name: rabbitmq
networks:
- lamenu
ports:
- "5672:5672" # RabbitMQ porti
- "15672:15672" # Web konsol porti

View File

@@ -7,7 +7,7 @@ import (
)
func Connect() (*amqp.Connection, *amqp.Channel, error) {
conn, err := amqp.Dial("amqp://guest:guest@127.0.0.1:5672/")
conn, err := amqp.Dial("amqp://guest:guest@rabbitmq:5672/")
if err != nil {
return nil, nil, err
}