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

docker config.yaml Permission #150

Open
kahatie opened this issue Feb 22, 2024 · 3 comments
Open

docker config.yaml Permission #150

kahatie opened this issue Feb 22, 2024 · 3 comments
Labels

Comments

@kahatie
Copy link

kahatie commented Feb 22, 2024

--- FR ---
Bonjour et tout d'abord un grand merci pour ce projet

Sous docker j'ai rencontre un problème de droit avec le fichier de config.yaml

vue que j'ai galérai 2h je vous pose la la solution :

Après avoir installer le container il faut créé / édit config.yaml
pour ce connecter au container en root :
docker exec -it --workdir / --user root <docker id/name> sh
puis une fois logger on peut copier le fichier de config d'exemple:
copy /app/config/config.yaml /config/config.yaml

puis edité le

enfin fixer les droits en lecture seule pour appuser:
chown appuser /config/config.yaml
chmod 400 /config/config.yaml

--- EN ---

After installing the container you must create / edit config.yaml
to connect to the container as root:
docker exec -it --workdir / --user root <docker id/name> sh
then once logged we can copy the example config file:
copy /app/config/config.yaml /config/config.yaml

then edited it

finally set read-only rights to appuser :
chown appuser /config/config.yaml
chmod 400 /config/config.yaml

@kahatie kahatie mentioned this issue Feb 22, 2024
@Minims
Copy link
Owner

Minims commented Feb 24, 2024

Hello,

Can this permission can be fixed directly in the docker-compose ?

@kahatie
Copy link
Author

kahatie commented Feb 25, 2024

HI
in the docker-compose i think no
maybe we can do it in the dockerfile? if you can add it to the entrypoint, a script which checks if config.yaml exists otherwise copy the example file and applies the permissions. then do continus do normal entrypoint...
i m not no sure you can do it with appuser may it need be root for do it

@Minims Minims added the docker label Mar 18, 2024
Minims added a commit that referenced this issue Feb 10, 2025
@Minims
Copy link
Owner

Minims commented Feb 10, 2025

Quand pense tu ?

cd359e5

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

No branches or pull requests

2 participants