Can't manage to acces mounted storage with docker-compose app

demian ilie 0 Reputation points
2024-10-16T10:20:19.9866667+00:00

I have made a file share and mounted it like this:

User's image

(not sure if i should censor anything but i did just to be safe)
but whenever i try to access the /outdata file like this:

services:
  mongo_db:
    container_name: db_container
    image: mongo:
    volumes:
    - /outdata/mongo:/data/db 

I get the exception: 2024-10-16T10:17:58.048Z ERROR - Exception in multi-container config parsing: YamlException: (Line: 9, Col: 7, Idx: 133) - (Line: 9, Col: 30, Idx: 156): Bind mount must start with ${WEBAPP_STORAGE_HOME}.

2024-10-16T10:17:58.058Z ERROR - Start multi-container app failed

Azure Files
Azure Files
An Azure service that offers file shares in the cloud.
1,304 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,921 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.