Using ENV variables instead of mediamtx.yml #3712
Replies: 1 comment
-
Hello, the command you posted seems right to me, in particular, the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Question
Hi all, due to some very specific filesystem limitations, I am unable to use the mediamtx.yml for my config. I am trying to translate my mediamtx.yml file to be ENV vars that I pass in through "-e" in my docker run command.
Here is my mediamtx.yml file (works in dev but not production due to the constraints of the machine I am deploying this one)
Here is my current docker run command
However, I can't even get it to give me segments in 10s increments, so I'm assuming the env var name is wrong.
To be clear, this works perfectly in DEV when pulling the config from the YML file, but due to the nature of this problem, I cannot use the YML in production and must pass in ENV vars. Does anybody know exactly how to translate that YML to just straight environment variables in the docker run command?
Beta Was this translation helpful? Give feedback.
All reactions