Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with rabbitmq #3096

Closed
pvkhanh1708 opened this issue Nov 9, 2021 · 4 comments
Closed

Problem with rabbitmq #3096

pvkhanh1708 opened this issue Nov 9, 2021 · 4 comments

Comments

@pvkhanh1708
Copy link

pvkhanh1708 commented Nov 9, 2021

Error:

When I run this command: docker-compose build nginx mongo redis rabbitmq php-worker
I get error below

ERROR: The Compose file '.\docker-compose.yml' is invalid because:
services.rabbitmq.ports contains an invalid type, it should be a number, or an object

It's RabbitMQ config in docker-compose.yml

RabbitMQ

rabbitmq:
  build: ./rabbitmq
  ports:
    - "${RABBITMQ_NODE_HOST_PORT}:5672"
    - "${RABBITMQ_MANAGEMENT_HTTP_HOST_PORT}:15672"
    - "${RABBITMQ_MANAGEMENT_HTTPS_HOST_PORT}:15671"
    - "${RABBITMQ_WEB_STOMP_HOST_PORT}:15674"
  privileged: true
  hostname: laradock-rabbitmq
  volumes:
    - ${DATA_PATH_HOST}/rabbitmq:/var/lib/rabbitmq
    - ./rabbitmq/rabbitmq.conf:/etc/rabbitmq/rabbitmq.conf
    - ./rabbitmq/management_agent.disable_metrics_collector.conf:/etc/rabbitmq/conf.d/management_agent.disable_metrics_collector.conf
  depends_on:
    - php-fpm
  networks:
    - backend

Please help me!

@simonbuehler
Copy link

check your env file, i guess some entries from .env.example are missing

@pndx
Copy link

pndx commented Mar 5, 2022

same problem when i try to rebuild

@stale
Copy link

stale bot commented Jun 11, 2022

Hi 👋 this issue has been automatically marked as stale 📌 because it has not had recent activity 😴. It will be closed if no further activity occurs. Thank you for your contributions ❤️.

@stale stale bot added the Stale label Jun 11, 2022
@stale
Copy link

stale bot commented Jul 10, 2022

Hi again 👋 we would like to inform you that this issue has been automatically closed 🔒 because it had not recent activity during the stale period. We really really appreciate your contributions, and looking forward for more in the future 🎈.

@stale stale bot closed this as completed Jul 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants