Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Docker compose volume on external drive windows 10

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?

like image 415
Rravent Avatar asked Oct 24 '25 02:10

Rravent


1 Answers

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

like image 108
ddieppa Avatar answered Oct 26 '25 17:10

ddieppa



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!