I am trying to create some API tests for Azure Functions Apps. For the API to work properly it needs an azure storage account. I create a docker-compose file with
- my API
- Azurite
- my API Tests
Everything works pretty smooth, until the API tries to access the storage. Then the storage returns 403 for my check if a file exists.
I created a script on my local system (not inside docker) that does exactly the same thing with exactly the same connection string and the same version of @azure/storage-blob (12.12.0)
"From the outside" my script works, but "from the inside" (docker-networks) it doesn't even though I can see the request being processed by azurite (it logs the incoming request)
I already tried using the name of the container, assigning a domainname (azurite.com) and using the internal and external ip of the system running the docker, but it all fails.
Can anybody offer any advice?