Hi,
I'm using Azure Web app for Multi-container (Preview) to run a docker-compose file that run multiple containers.
Inside this docker-compose I have some references to external yaml configuration files (for example otel-collector, prometheus, etc).
I cannot find a way to map single file from host to container using Volumes of docker-compose.
I created an Azure Share connected to my Web App where I hosted the yaml configuration files.
Then in my docker-compose I wrote something like this:
volumes:
- otelshare/otel-collector-config.yaml:/etc/otel-collector-config.yaml
where otelshare is the name of my azure share.
WEBSITES_ENABLE_APP_SERVICE_STORAGE is setted to true.
I got this error:
Exception in multi-container config parsing: YamlException: (Line: 10, Col: 9, Idx: 262) - (Line: 10, Col: 77, Idx: 330): Bind mount must start with ${WEBAPP_STORAGE_HOME}.
Here is the full docker-compose just to give you more context:
version: '3.8'
services:
otel-collector-azure:
image: otel/opentelemetry-collector-contrib:latest
ports:
- "4317:4317"
- "4318:4318"
command: ['--config=/etc/otel-collector-config.yaml']
volumes:
- otelshare/otel-collector-config.yaml:/etc/otel-collector-config.yaml
volumes:
data:
driver: azure_file
driver_opts:
share_name: otelshare
storage_account_name: mystoragetest
Can anyone help me?