Building container for photoprism but it is empty

Running Docker Desktop version 4.29.0 (145265)
Engine: 26.0.0
Compose: v2.26.1-desktop.1
Credential Helper: v0.8.1
Kubernetes: v1.29.2
Windows 11 Pro
Version 23H2

I am using a docker_compose.yml file to map a network drive that holds my pictures into the originals folder for PhotoPrism.
If I map a folder on my local drive all is good. (see line below with “this worked tr” comment)
When I try to map the NAS folder, I get no errors but the “originals” is empty.
P: is maped to the folder called My_Pictures on my nas located at 192.168.x.x
Here is the snipit from the .yml file:

 volumes:
      # "C:/user/username/folder:/photoprism/folder"       # example
      #- "~/Pictures/My_Pictures:/photoprism/originals"     #this worked tr
      - "P:/:/photoprism/originals"

Here is the volumes section of the .yml file:

volumes:
  database:
    driver: local

Here is the output from running docker-compose up -d:
PS C:\Users\tomr5\documents\docker> docker compose up -d
[+] Running 3/3

  • :heavy_check_mark: Network docker_default Created 0.0s*
  • :heavy_check_mark: Container docker-mariadb-1 Started 0.1s*
  • :heavy_check_mark: Container docker-photoprism-1 Started 0.1s*
    PS C:\Users\tomr5\documents\docker>

Any help would be appreciated.
Thanks.