grocy-docker icon indicating copy to clipboard operation
grocy-docker copied to clipboard

config.php step missing in documentation?

Open DerfOh opened this issue 2 years ago • 1 comments

Unable to run grocy: config.php in data directory (/var/www/public/../data) not found. Have you copied config-dist.php to the data directory and renamed it to config.php?

I get the above error when accessing my container. Did I miss something in the readme?

DerfOh avatar Jan 25 '22 16:01 DerfOh

So I got it to work, my issue was modifying the volume to be

  - `/home/derfoh/data/app-db:/var/www/data`

root@virt-ubuntu-3:/# find . -name app-db

This leads to another question: where does grocy save it's data? I can't find app-db anywhere on my filesystem. Is there a way to specify a location for the app-db for backup and recovery purposes?

DerfOh avatar Jan 25 '22 16:01 DerfOh

I looked through the Docker documentation for volumes and found that by default in my Ubuntu there where in /home/<my_user>/docker/root/volumes.

Thus you can see (and copy or edit when the service is down) your data in /home/<my_user>/docker/root/volumes/grocy-docker_app-db/_data/.

vnmabus avatar Sep 14 '22 08:09 vnmabus

Hi @DerfOh - I'm glad that you were able to sort out the config.php problem!

To help explain: the grocy/backend image has the default Grocy configuration built into it -- and the easiest way to modify the settings that the application runs with is to edit the grocy.env file before (re)starting the containers.

To help track down where Docker volumes exist on a filesystem, I can recommend the docker volume inspect command which prints detailed metadata about volumes.

jayaddison avatar Sep 17 '22 16:09 jayaddison