Messages not published in RabbitMQ #2443
-
Shlink version4.4.6 PHP version8.4.5 How do you serve ShlinkDocker image Database engineMySQL Database versionmariadb:10.8 SummaryI am unable to get shlink to publish updates to rabbitmq.
version: "3"
services:
rabbitmq:
healthcheck:
test: ["CMD-SHELL", "rabbitmqctl status"]
image: rabbitmq
shlink:
image: shlinkio/shlink:stable
restart: always
environment:
- TZ="Europe/Paris"
- DEFAULT_DOMAIN=foo
- IS_HTTPS_ENABLED=true
- DB_DRIVER=maria
- DB_USER=shlink
- DB_NAME=shlink
- DB_PASSWORD=shlink
- DB_HOST=database
- SHELL_VERBOSITY=3
- RABBITMQ_ENABLED=true
- RABBITMQ_USER=guest
- RABBITMQ_PASSWORD=guest
depends_on:
database:
condition: service_started
rabbitmq:
condition: service_healthy
restart: true
ports:
- 8080:8080
shlink_web:
image: shlinkio/shlink-web-client:stable
restart: always
environment:
- tz="europe/paris"
depends_on:
- database
- rabbitmq
ports:
- 8188:8080
database:
image: mariadb:10.8
restart: always
environment:
- MARIADB_ROOT_PASSWORD=shlink
- MARIADB_DATABASE=shlink
- MARIADB_USER=shlink
- MARIADB_PASSWORD=shlink
volumes:
- ./data/db_data:/var/lib/mysqlshlink logs: As you can see, there is no relevant logs as to what is going on (even with the DEBUG verbosity on) with the RabbitMQ publishing. We are not even told whether RabbitMQ is enabled... [foo@bar shlink]$ docker compose exec -it rabbitmq rabbitmq-diagnostics list_exchanges
Listing exchanges for vhost / ...
name type
amq.match headers
amq.rabbitmq.trace topic
amq.topic topic
amq.headers headers
amq.fanout fanout
amq.direct direct
direct[foo@bar shlink]$ docker compose exec -it rabbitmq rabbitmq-diagnostics list_queues
Timeout: 60.0 seconds ...
Listing queues for vhost / . |
Beta Was this translation helpful? Give feedback.
Answered by
acelaya
Jun 5, 2025
Replies: 1 comment 7 replies
-
|
You are missing |
Beta Was this translation helpful? Give feedback.
7 replies
Answer selected by
acelaya
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You are missing
RABBITMQ_HOST=rabbitmqin your shlink environment. That worked for me.