Y
Y
yellow_pus2022-03-14 15:50:24
Docker
yellow_pus, 2022-03-14 15:50:24

How to change permission for acme.json?

I have a laravel project wrapped in docker. One of the containers - traefik, when starting containers, an error gets into the logs

msg="Unable to add ACME provider to the providers list: unable to get ACME account : permissions 755 for acme.json are too open, please use 600"
On local, this error was solved by the command sudo chmod 600 acme.json. But on prod, even after launching containers via docker-compose up -dAND changing the permission to "600", he continues to complain. Apparently, it seems to me that it automatically changes every second to 755, due to what I do from the root, but I'm not sure from the word at all.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question