# Help with Persistent Install Data and NFS in Docker Swarm

**URL:** <https://forum.pydio.com/t/help-with-persistent-install-data-and-nfs-in-docker-swarm/2843>\
**Category:** Pydio Cells\
**Tags:** docker\
**Created:** [October 15, 2019, 2:58pm UTC](https://forum.pydio.com/t/help-with-persistent-install-data-and-nfs-in-docker-swarm/2843 "2019-10-15T14:58:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![napdef](https://yyz2.discourse-cdn.com/flex032/user_avatar/forum.pydio.com/napdef/32/1039_2.png) [@napdef](https://forum.pydio.com/u/napdef)\
**Post date:** [October 15, 2019, 2:58pm UTC](https://forum.pydio.com/t/help-with-persistent-install-data-and-nfs-in-docker-swarm/2843/1 "2019-10-15T14:58:05Z")

</div>

Hello, I’m having a heck of a time trying to get persistent data for the install. When I take the stack down and bring it back up I always end up back at the installation screen. I’ve tried various combinations of named volumes, but, none work long term.

I get one error during installation, nothing negative in the logs to correspond with this message in the front end. Otherwise, it appears that the installation is successful.

 ![image](https://canada1.discourse-cdn.com/flex032/uploads/pydio/original/2X/e/e8ed0454cb09846996baf4f94cf91a4b98452d07.jpeg)

Here’s a link to my yml file: [https://github.com/joe-scalise/pydiocells.yml/blob/master/pydiocells.yml](https://github.com/joe-scalise/pydiocells.yml/blob/master/pydiocells.yml)

Anyone using Docker have named volumes working?

I also have a very difficult time adding a data source for an NFS mount that already has files. My hardware may be the limiting factor during indexing, but, I can’t tell for sure. All I get is a timeout and data source not found error in the logs.

 ![image](https://canada1.discourse-cdn.com/flex032/uploads/pydio/original/2X/c/c7d0b66c624b6f920d5f83f01adeb0dea53bba11.png)

Any thoughts appreciated.

---

<div class="post-metadata">

**Author:** ![charles](https://yyz2.discourse-cdn.com/flex032/user_avatar/forum.pydio.com/charles/32/3_2.png) [@charles](https://forum.pydio.com/u/charles)\
**Post date:** [October 23, 2019, 3:49pm UTC](https://forum.pydio.com/t/help-with-persistent-install-data-and-nfs-in-docker-swarm/2843/2 "2019-10-23T15:49:43Z")

</div>

@zayn can you have a look at this please ? Docker stuff…

---

<div class="post-metadata">

**Author:** ![nmincone](https://yyz2.discourse-cdn.com/flex032/user_avatar/forum.pydio.com/nmincone/32/2396_2.png) [@nmincone](https://forum.pydio.com/u/nmincone)\
**Post date:** [June 9, 2024, 3:48pm UTC](https://forum.pydio.com/t/help-with-persistent-install-data-and-nfs-in-docker-swarm/2843/3 "2024-06-09T15:48:16Z")

</div>

Hi did you ever get this resolved? It seems named containers are the way to go with docker, this way data can be shared across different containers/apps. I’m just starting to experiment myself with Pydio using either CIFS or NFS mounted data shares - will little success.

---

<div class="post-metadata">

**Author:** ![bsinou](https://yyz2.discourse-cdn.com/flex032/user_avatar/forum.pydio.com/bsinou/32/476_2.png) [@bsinou](https://forum.pydio.com/u/bsinou)\
**Post date:** [June 11, 2024, 4:43pm UTC](https://forum.pydio.com/t/help-with-persistent-install-data-and-nfs-in-docker-swarm/2843/4 "2024-06-11T16:43:38Z")

</div>

Hi,

please do not resurrect very old threads, rather make a new one 🙂 .

That said, this yaml file has some problems, main one being that the default working directory in the official docker image is rather there: `/var/cells`

So your yaml file should rather be something like this:

```auto
volumes:
    cells_working_dir: {}
    cells_logs: {}
...
services:
    cells:
        image: pydio/cells:4.4
        restart: unless-stopped
        expose: [8080]
        volumes: 
            - cells_working_dir:/var/cells
            - cells_logs:/var/cells/logs
...

```

If you want to e.g mount an dedicated NFS share for your data, it is slightly more complicated.  
In a few bullet points:

- Create and configure your NFS share
- Mount it in your docker host, typically at `/mnt/nfs1`
- Add this volume to Cells container volume list, e.g:

```auto
        volumes: 
            - cells_working_dir:/var/cells
            - cells_logs:/var/cells/logs
            - /mnt/nfs1:/data

```

- Launch your docker setup and configure Cells
- Create a new datasource that points toward `/data/dss/datasource1`

For the record the `dss` folder _level_ (not its name) is compulsory for the datasource to be correctly configured.

If you want to define more than one data source at this location, it is better to have also the second level, so that you can easily configure it at `/data/dss/datasource2`

Please refer to [our admin doc](https://pydio.com/en/docs/cells/v4/datasources-overview) if you want / need deeper understanding of the what and why.
