Try using the container name in your .env file:
MERCURE_PUBLIC_URL=https://container-name/mercure MERCURE_URL=https://container-name/mercure