# Change path /var/lib/gladysassistant

**URL:** <https://community.gladysassistant.com/t/modifier-chemin-var-lib-gladysassistant/9834>\
**Category:** Configuration\
**Created:** [November 21, 2025, 9:08pm UTC](https://community.gladysassistant.com/t/modifier-chemin-var-lib-gladysassistant/9834 "2025-11-21T21:08:16Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ArMour85](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/armour85/32/7457_2.png) [@ArMour85](https://community.gladysassistant.com/u/ArMour85)\
**Post date:** [November 21, 2025, 9:08pm UTC](https://community.gladysassistant.com/t/modifier-chemin-var-lib-gladysassistant/9834/1 "2025-11-21T21:08:16Z")

</div>

Hello,

Allow changing the destination “/var/lib/gladysassistant” used to store all Gladys data. This also involves modifying the startup of the Docker containers such as Node-RED and Mosquitto.

This provides more flexibility if you want to use another partition or a disk to store the data and is cleaner than a symbolic link.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![Will\_71](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/will_71/32/9582_2.png) [@Will\_71](https://community.gladysassistant.com/u/Will_71)\
**Post date:** [November 21, 2025, 9:43pm UTC](https://community.gladysassistant.com/t/modifier-chemin-var-lib-gladysassistant/9834/2 "2025-11-21T21:43:40Z")

</div>

> [@ArMour85](#):
>
> /var/lib/gladysassistant

You can already change the folder during installation by modifying the docker command.

This is already explained in the docs

Below is the folder selection in the docker command

```bash
-v /var/lib/gladysassistant:/var/lib/gladysassistant \

```

> **[Installation avec Docker | Gladys Assistant](https://gladysassistant.com/fr/docs/installation/docker/)**
>
> Ce tutoriel vous explique comment installer Gladys manuellement avec Docker, quelle que soit la machine sur laquelle vous faites fonctionner Gladys.

`-v /var/lib/gladysassistant` : The destination folder where Gladys will store all its data. You can change the part on the left of the «&nbsp;:&nbsp;» to modify the destination folder.

### As a reminder:

The following Docker command:

```bash
-v /var/lib/gladysassistant:/var/lib/gladysassistant

```

is a **volume mount option** which means:

**`-v` or `--volume`**

This option allows you to **mount a folder from the host system into a Docker container**.

### General format

```bash
-v \u003cdossier_hôte\u003e:\u003cdossier_conteneur\u003e

```

- **Host folder :** `/var/lib/gladysassistant`

- **Folder in the container :** `/var/lib/gladysassistant`

➡ This means the Docker container will use the host system folder as internal storage.

You can thus put for example:

```bash
-v /home/user_name/gladys:/var/lib/gladysassistant \

```

---

<div class="post-metadata">

**Author:** ![ArMour85](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/armour85/32/7457_2.png) [@ArMour85](https://community.gladysassistant.com/u/ArMour85)\
**Post date:** [November 22, 2025, 2:52pm UTC](https://community.gladysassistant.com/t/modifier-chemin-var-lib-gladysassistant/9834/3 "2025-11-22T14:52:22Z")

</div>

Ok for Gladys, but for Node-Red. This path cannot be changed because it is in the code and I can’t find a way to modify it in the settings.

Or maybe when Gladys installs the Node-Red Docker, it uses the path given when launching the Gladys Docker, but I highly doubt it.

---

<div class="post-metadata">

**Author:** ![Will\_71](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/will_71/32/9582_2.png) [@Will\_71](https://community.gladysassistant.com/u/Will_71)\
**Post date:** [November 23, 2025, 1:06pm UTC](https://community.gladysassistant.com/t/modifier-chemin-var-lib-gladysassistant/9834/4 "2025-11-23T13:06:59Z")

</div>

Node-Red resumes the Gladys path

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/e/1/e19c0b01bb7e4fbe5026c27ffe2d293256e5d1af.png)

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [November 24, 2025, 8:53am UTC](https://community.gladysassistant.com/t/modifier-chemin-var-lib-gladysassistant/9834/5 "2025-11-24T08:53:25Z")

</div>

Hi @ArMour85,

I just went to read the Node-RED integration code and normally the path used is indeed the same path as on Gladys, so it already works without modifications!

(The code in question: [Gladys/server/services/node-red/lib/installContainer.js at master · GladysAssistant/Gladys · GitHub](https://github.com/GladysAssistant/Gladys/blob/master/server/services/node-red/lib/installContainer.js#L38) )

So @_Will_71’s message is therefore correct!

---

<div class="post-metadata">

**Author:** ![ArMour85](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/armour85/32/7457_2.png) [@ArMour85](https://community.gladysassistant.com/u/ArMour85)\
**Post date:** [November 24, 2025, 8:58am UTC](https://community.gladysassistant.com/t/modifier-chemin-var-lib-gladysassistant/9834/6 "2025-11-24T08:58:46Z")

</div>

Hello @pierre-gilles,

Yes I confirm after testing that it works fine. It’s just that I didn’t know that if Gladys starts the container, it will rely on the volume pointed to by the Gladys container.

I’m learning something new every day 😉

We can close this request then.

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [November 24, 2025, 9:10am UTC](https://community.gladysassistant.com/t/modifier-chemin-var-lib-gladysassistant/9834/7 "2025-11-24T09:10:28Z")

</div>


