4

I want to 'access' my external drive from my docker compose, I'm trying to do it like this:

container:
    image: container
    build: .
    restart: always
    container_name: container
    hostname: container
    depends_on:
      - mysql
    networks:
      - net-backend
    expose:
      - 8080
    volumes:
      - F:\\Data:/data/local
      - app_data:/app/streama

And it's not working, so I've tried another ways to do it like:

volumes:
      - /F/Data:/data/local

or

volumes:
      - F:\Data:/data/local

or

volumes:
      - \\F\\Data:/data/local

What is the correct way to do it?

1 Answer 1

2

Did you try with /f/Data:/data/local

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.