Use Docker Compose | Docker Docs

github

learning-docker/1-getting-started-guide/README-4-docker-compose.md at main · spawnmarvel/learning-docker · GitHub

changed this

 ports:
      - 127.0.0.1:3000:3000
 ports:
      - 0.0.0.1:3000:3000
 ports:
      - 3000:3000

cd getting-started-app

touch compose.yml

docker compose up -d

docker compose logs -f

docker ps

docker compose down

Rabbitmq

learning-docker/1-getting-started-guide/README-4-docker-compose.md at main · spawnmarvel/learning-docker · GitHub

First run

visit http://public-ip:15672 success with preconfigured user.

but the shovel plugin was not loaded even after restart, hm..

rmq-rmq-app-1  |  completed with 5 plugins.
rmq-rmq-app-1  | 2024-01-04 12:49:08.989596+00:00 [info] <0.501.0> Server startup complete; 5 plugins started.
rmq-rmq-app-1  | 2024-01-04 12:49:08.989596+00:00 [info] <0.501.0>  * rabbitmq_prometheus
rmq-rmq-app-1  | 2024-01-04 12:49:08.989596+00:00 [info] <0.501.0>  * rabbitmq_shovel
rmq-rmq-app-1  | 2024-01-04 12:49:08.989596+00:00 [info] <0.501.0>  * rabbitmq_management
rmq-rmq-app-1  | 2024-01-04 12:49:08.989596+00:00 [info] <0.501.0>  * rabbitmq_management_agent
rmq-rmq-app-1  | 2024-01-04 12:49:08.989596+00:00 [info] <0.501.0>  * rabbitmq_web_dispatch
rmq-rmq-app-1  | 2024-01-04 12:49:09.090715+00:00 [info] <0.9.0> Time to start RabbitMQ: 4704586 us

must add shovel_management args

Dockerfile add

RUN rabbitmq-plugins enable –offline rabbitmq_shovel && rabbitmq-plugins enable –offline rabbitmq_shovel_management

Every time you update the Dockerfile you must

docker compose down

docker rmi -f imagename