I'm new to Docker and I'm using Docker Desktop on Windows. Everything seems to be running well, but I'm struggling with how to set up the volumes in my Docker Compose file. For my case, do I set the volume to my install path, like //c/Users/Viper/faster-whisper? Here's what I have in my Docker Compose file:
```
services:
faster-whisper:
image: lscr.io/linuxserver/faster-whisper:latest
container_name: faster-whisper
environment:
- PUID=1000
- PGID=1000
- TZ=Etc/UTC
- WHISPER_MODEL=tiny-int8
- WHISPER_BEAM=1 #optional
- WHISPER_LANG=en #optional
volumes:
- /path/to/faster-whisper/data:/config
ports:
- 10300:10300
restart: unless-stopped
```
4 Answers
A volume in Docker serves as a designated area for the container to read and write data. Essentially, you're linking a spot in the Docker container with a specific location on your file system. It’s perfect for configuration files and backups! You can also create a standalone volume in Docker to share data among different containers.
You're correct! Just specify the location where you want to save your volume data. You can use a path on your local system or even a network share for this.
If you're used to the command line, you might have options available by clicking the three dots on the side. You should be able to set up your volume there easily!
Gotcha! I just want to make sure: if I named my volume 'test', would my Compose setup look like this: `volumes: - /test/data:/config`?
No, the path you provide should be where you want to save your data, not the installation path.
I managed to find the image in Docker Desktop, but I'm confused about the variables I need to set. I've never worked with Docker before, and I'm just trying to get this to run with GPU support—it feels so confusing!