4 ms·
> Looking at your repo, I see your docker-compose volumes map e.g. data to data … volumes: - data:/data Theres two ways to mount a volume, one with a / and one
by EnigmaCurry 4y ago
> Looking at your repo, I see your docker-compose volumes map e.g. data to data … volumes: - data:/data
Theres two ways to mount a volume, one with a / and one without.
/some/directory:data
some-volume:data
The first mounts a directory
The second mounts a named volume.
I suggest doing the second so that it can be maintained directly by docker through `docker volume create|rm` or `docker compose up|down [-v]`.