Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use of docker volume for data makes it hard to customize #235

Open
KoenDG opened this issue Jan 14, 2024 · 2 comments
Open

Use of docker volume for data makes it hard to customize #235

KoenDG opened this issue Jan 14, 2024 · 2 comments

Comments

@KoenDG
Copy link

KoenDG commented Jan 14, 2024

I mistakenly commented on the source repo: grocy/grocy#486 (comment)

And my issue is this: changing the currency of groccy can only be done by editing the config.php file.

Using this setup, from this repository here, I seemingly have no option but to go into the container with docker exec, and modify the file with vi.

Unless there's a way to easily browse the content of docker volumes that I don't know about?

Configuration options should be available before starting software or a container that runs the software.

What can be done to move configuration out of the docker volume?

@jjgmckenzie
Copy link

@KoenDG

You can change currency by setting environment variables. The default docker-compose provided uses a .env file for this, grocy.env

But I am using environment variables just fine, eg:

  backend:
    image: "grocy/backend:v4.0.3"
    environment:
    - GROCY_CURRENCY=CAD

@KoenDG
Copy link
Author

KoenDG commented Jan 24, 2024

Yeah I tried grocy.env and it didn't work.

Deleted my image and volumes and everything, started a new instance... still USD.

And yeah, I didn't consider setting an environment variable directly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants