How do an update of an environment variable?

I did a change in the compose.yaml, namely

I

  NEXTCLOUD_MOUNT: /home/storage

I did an update of the container via

sudo docker-compose up --build

If I log into the container, I can see that the variable is set

echo $NEXTCLOUD_MOUNT
/home/storage

But I do not see the change in Nextcloud web interface. What did I miss? How to update the container (w/o losing the data)

Many thanks for the support of a not-so-deep-into-Nextcloud user!
Ch.

please share your compose file and rest of details required in support template to understand your setup. and explain what are you trying to achieve.

Sorry to be not clear enough. The question is not if the compose.yaml is wrong or that Nextcloud is not running. This is all fine. The question is, how to force an update of the configuration if I make some changes regarding the environment variables in the compose.yaml.

What I did is this command

$ sudo docker stop nextcloud-aio-mastercontainer
$ sudo docker compose up -d # detach
[+] Building 0.0s (0/0)
WARN[0000] volume “nextcloud_aio_mastercontainer” already exists but was not created by Docker Compose. Use external: true to use an existing volume
[+] Running 1/1
✔ Container nextcloud-aio-mastercontainer Started

I also managed to access the Nextcloud AIO v11.11.0 web interface (this is a little bit complicated in my network) and re-started. Now I can see the local storage.

Sorry for the confusion! Christof

1 Like