-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
fix rabbit-mq #3330
fix rabbit-mq #3330
Conversation
️✅ There are no secrets present in this pull request anymore.If these secrets were true positive and are still valid, we highly recommend you to revoke them. 🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request. |
@djsisson why is it not enough if we add a persitant volume: services:
rabbitmq:
image: rabbitmq:3-management
environment:
- SERVICE_FQDN_RABBITMQ_15672
- RABBITMQ_DEFAULT_USER=$SERVICE_USER_RABBITMQ
- RABBITMQ_DEFAULT_PASS=$SERVICE_PASSWORD_RABBITMQ
- PORT=${PORT:-5672}
ports:
- ${PORT}:5672
healthcheck:
test: rabbitmq-diagnostics -q ping
interval: 5s
timeout: 30s
retries: 10
volumes:
- rabbitmq-data:/var/lib/rabbitmq/ |
see linked gh issue on rabbitmq 'if hostname is not provided, it creates a random hostname each time service is restarted.' ah i see, maybe youre right, i didnt see it wasnt global storage :) |
But this is just rabbitmq issue this does not happen with docker in general, right or am I wrong? |
this is just a rabbitmq issue if you run without host and check logs/volumes you get something like this /var/lib/rabbitmq/mnesia/rabbit@ee90f8d1363e restart /var/lib/rabbitmq/mnesia/rabbit@32b510b78640 setting a hostname stops this from happening |
Alright looks good. |
fix rabbit-mq generating new folders after everyrestart
docker-library/rabbitmq#392
https://discord.com/channels/459365938081431553/1281347394302251020/1281347394302251020