Comments (6)
I'm out on holidays (which is why I took so long to reply to this). What if we try the following:
in docker-compose.yml
add a environment section:
environment:
- CULTURE=en
(this then can be changed by the user before they run docker-compose up
).
We then would need to add an ENTRYPOINT to Dockerfile-grocy
so that a script is executed every time. The idea behind this script would be to update the data/config.php file.
Another (simpler) solution is removing CULTURE from the /data/config.php file altogether (this could be done via sed
in the Dockerfile-grocy
file), and testing if grocy already leverages the environmental variable set via .yml
from grocy-docker.
I have made a pull request that updates to version 1.23.1 which adds French. To enable it though you have to change ('CULTURE', 'en')
to ('CULTURE', 'fr')
in the data/config.php
file that is in the grocy/grocy-docker:grocy
container. There is probably a easy way to do this using the docker-compose file, but I don't know how to do it. Hopefully @talmai knows how to do something like that.
I did find a way to switch the language though.
1.sudo docker exec -i -t grocy /bin/sh
2.apk add nano
3.nano ../data/config.php
4.change ('CULTURE', 'en')
to ('CULTURE', 'fr')
5.use ctrl+x to exit. Y then enter to save.
6.exit
To use this you will have to wait till my pull request is accepted though. Or you can use https://github.com/Comrade3/grocy-docker if you want. But if you do don't pull the image before with docker pull grocy/grocy-docker:grocy
or docker-compose pull
. Just run docker-compose up
so it builds from the Dockerfile-grocy.
from grocy-docker.
grocy/grocy#118 is done, so environment variables for all config.php
settings will work in the next release (will push one today to include this) - but they need to be prefixed with GROCY_
, so e. g. GROCY_CULTURE
...
from grocy-docker.
I created a pull request for the language option using the GROCY_CULTURE
in the docker-compose.yml. :) @talmai you will probably want to add instructions in the README.
from grocy-docker.
Nice thanks for your work ! I can't wait to use it at home !
from grocy-docker.
merged into master
from grocy-docker.
Related Issues (20)
- Consider deprecating use of docker HOT 3
- grocy/grocy-docker or linuxserver/grocy HOT 7
- Rollback to PHP 8.0 HOT 3
- Update base images to use Alpine 3.17.2 HOT 2
- Plan from migrating away from dockerhub? HOT 3
- frontend container: intermittent build error: unable to remove temporary directory contents HOT 1
- GitHub Actions: update buildah-build action in publish workflow to a more recent version
- 404 on node_modules following upgrade to 4.0.0 HOT 44
- Update guide incomplete. HOT 1
- No assets in the web UI after 3.3.2->4.0.2 upgrade (docker-compose + nginx) HOT 10
- Frontend issues with grocy >= 4.0.1 HOT 4
- Feature Request: Populate data directory if using docker bind mounts HOT 6
- Feature request: Proxy authentication by http header value HOT 2
- Allow changing the name of the backend container. HOT 2
- Docker image not found (with bages linked) HOT 1
- Use of docker volume for data makes it hard to customize HOT 2
- Request: Allow setting the front-end nginx configuration for subdirectory HOT 1
- Can't add item on first login HOT 1
- Popup menus collapse to zero height on firefox until browser window is resized HOT 3
- Unable to set custom domain for grocy in Android app HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grocy-docker.