set --log-level by ENV in docker #601
-
Sorry of the question is dummy, by using an environment variables with appropriate value. like: Best and compliment for the great project! Maxi |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Can you show us what do you have already? Any |
Beta Was this translation helpful? Give feedback.
-
I believe you want to use this trick: https://stackoverflow.com/questions/40447029/docker-compose-environment-variable-for-command So the main idea is you're escaping container environment variable and the use it's value in the command line |
Beta Was this translation helpful? Give feedback.
-
Hi,
It would be nice to set PGTT_LOG_LEVEL: debug and have the container run with debug log level So far to overcome I have created a Dockerfile (since i needed to run python code) and override ENTRYPOINT like this:
and have changed the compose to:
|
Beta Was this translation helpful? Give feedback.
Can you just use
?