#13310·portainer

EE: Stack with Git: Bind volume path is empty on /data

Author: CommifreakCreated Sep 28, 2026Updated Sep 28, 2026
Labelskind/bugbug/need-confirmationbot/kind-classification-complete

Before you start please confirm the following.

  • Yes, I've searched similar issues on GitHub.
  • Yes, I've checked whether this issue is covered in the Portainer documentation.

Problem Description

I have a compose file with a bind volume like - ./assets-static:/usr/share/nginx/html/assets/static:ro in my git repo.

When deployed, Portainer creates a repo copy inside /var/lib/docker/volumes/portainer_data/_data/compose/25/c7f338b7e141b4c6195ee4489937a707a22b1c89/assets-static/. and the files wanted are there. So far so good.

To deploy this volume inside the container, Portainer creates /data/compose/25/c7f338b7e141b4c6195ee4489937a707a22b1c89/assets-static/.

But the /data-folder content for this assets-static is always EMPTY. And I dont get why. And because its empty on host, its also empty inside the container.

Anything I can check? I dont get any errors.

Expected Behavior

A exact copy of assets-static inside /data

Actual Behavior

Empty folders inside the /data-copy

Steps to Reproduce

see above

Portainer logs or screenshots

No response

Portainer version

2.45.1

Portainer Edition

Business Edition (BE/EE) with 5NF / 3NF license

Platform and Version

Docker 29.8.1

OS and Architecture

Ubuntu 22.04.5 x86_64

Browser

Firefox

What command did you use to deploy Portainer?

bash
docker run -d --network myBridge -p 8000:8000 -p 8443:9443 --name portainer --restart=always  -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ee:lts

Additional Information

No response