when doing a docker compose up of a multi container app, I get an error about my volumes definition: services.volumes Additional property nginx is not allowed.
in my docker-compose.yaml, I defined the volumes as prescribed by docker: https://docs.docker.com/engine/context/aci-integration/#using-azure-file-share-as-volumes-in-aci-containers.
my docker-compose.yaml:
version: '3.4'
services:
nginx:
image: nginx
container_name: nginx
restart: always
volumes:
- nginxdata/conf.d:/etc/nginx/conf.d
- nginx/basic_auth:/etc/nginx/basic_auth
ports:
- 80:80/tcp
volumes:
nginxdata:
driver: azure_file
driver_opts:
share_name: nginxdata
storage_account_name: mystorageacct
nginx:
driver: azure_file
driver_opts:
share_name: nginx
storage_account_name: mystorageacct
When I do a docker compose up, I get the error: "services.volumes Additional property nginxdata is not allowed".
Note: the azure shares exist and and for example, this works:
docker --context myaci run --name=nginxvolip -p 80:80 -v mystorageacct/nginx:/usr/share/nginx/html nginx
Did I miss something? Help is welcome!