-
Notifications
You must be signed in to change notification settings - Fork 430
Description
Hi, I am trying to use SSL to connect to the management UI by setting the following environment variables through docker-compose.
- RABBITMQ_MANAGEMENT_SSL_CACERTFILE=/etc/letsencrypt/live/x/fullchain.pem
- RABBITMQ_MANAGEMENT_SSL_CERTFILE=/etc/letsencrypt/live/x/cert.pem
- RABBITMQ_MANAGEMENT_SSL_KEYFILE=/etc/letsencrypt/live/x/privkey.pem
I have my lets encrypt certificates in the container with a volume.
When I run the container, Rabbit adds this to the log:
error: files specified, but missing
- /etc/letsencrypt/live/x/fullchain.pem (RABBITMQ_MANAGEMENT_SSL_CACERTFILE)
- /etc/letsencrypt/live/x/cert.pem (RABBITMQ_MANAGEMENT_SSL_CERTFILE)
- /etc/letsencrypt/live/x/privkey.pem (RABBITMQ_MANAGEMENT_SSL_KEYFILE)
But when i exec in, i can see those files and they have read permission. I thought it might not be working because these are symlinks and the entrypoint checks for a file specifically (https://github.com/docker-library/rabbitmq/blob/master/3.7/alpine/docker-entrypoint.sh#L135) Maybe this should use -e?
I changed the environment variables to point to the actual files but still get errors:
error: files specified, but missing
- /etc/letsencrypt/archive/x/fullchain2.pem (RABBITMQ_MANAGEMENT_SSL_CACERTFILE)
- /etc/letsencrypt/archive/x/cert2.pem (RABBITMQ_MANAGEMENT_SSL_CERTFILE)
- /etc/letsencrypt/archive/x/privkey2.pem (RABBITMQ_MANAGEMENT_SSL_KEYFILE)
- /etc/letsencrypt/archive/gx/fullchain2.pem (RABBITMQ_SSL_CACERTFILE)
- /etc/letsencrypt/archive/x/cert2.pem (RABBITMQ_SSL_CERTFILE)
- /etc/letsencrypt/archive/x/privkey2.pem (RABBITMQ_SSL_KEYFILE)
Again i can exec into the container and cat them fine.
Am i doing something wrong? Thanks.