I am mounting two volumes that way:
volumes:
- /home/username/videos:/var/www/symfony/ftp
- .docker/data/uploads/videos:/var/www/symfony/public/uploads/videos
Both folders on the host machine are on the same partition. If I run mv on the host for files between /home/username/videos and .docker/data/uploads/videos, it's basically instant. But if I run mv between var/www/symfony/ftp and /var/www/symfony/public/uploads/videos, it's painfully slow.
Basically, it seems like it's copying the file as if it was two completely different physical drives. The host machine is running Ubuntu 20.04, the Docker image Alpine 3.13.
Is this behavior expected? Any idea how I could improve that, if possible? (Other than just having both folder on the same volume)