Currently running docker 26.3 and 26.4 on Rocky Linux 8 and 9 respectively. I’m trying to create a media stack using docker compose with a single cifs volume (v3.0) for application config files, with subdirectories for each app. I would like to attach the individual subdirectories of the volume on a per-application basis using the subpath argument, but I’m running into issues with the argument. I’ve trimmed the stack down to a single app for troubleshooting, and still receiving the same issue. Below is the docker compose command:
When I comment the following lines, the command completes successfully, and mounts /Download/mediastack/Config to /config. When I uncomment the lines (with or without nocopy: true) I get the following error failed to deploy a stack: validating /data/compose/24/docker-compose.yml: services.jackett.volumes.1.volume Additional property subpath is not allowed
What I would like to do is mount /Download/mediastack/Config/Jackett to /config without creating a separate smb volume for each application. is this possible?
If I had to guess I would say you are using Docker Compose v1 (docker-compose) instead of Docker Compose v2 (docker compose) and the old compose didn’t support subpath which is a pretty new feature and v1 is not supported anymore.