Hi, is there an environment variable with which I ...
# talk-oathkeeper
g
Hi, is there an environment variable with which I can pass the `config.yml`or is
--config
CLI argument the only way to do it? Can’t find anything here in the docs.
d
Hello. You can pass it using any variable by your choice. You can use
OATHKEEPER_CONFIG
for instance
g
That’s great! Is the value supposed to contain the path to a file or the config itself? `OATHKEEPER_CONFIG`is not documented on https://www.ory.sh/docs/oathkeeper/ AFAICT so that’s why I didn’t find it.
d
OATHKEEPER_CONFIG
variable is not part of oathkeeper but still you can specify absolute path to the config and run it the following way
Copy code
export OATHKEEPER_CONFIG=/etc/config/oathkeeper.conf
oathkeeper serve -c $OATHKEEPER_CONF
g
Ah, I see. That’s obviously a solution 😄
Not what I intended though… My intention of using an env-var for the path was to be able to deploy (or use in docker-compose) the docker container without needing to override the docker
COMMAND
So if Oathkeeper had a
OATHKEEPER_CONFIG
or `OATHKEEPER_CONFIG_PATH`variable it would be simpler to make a deployment / local dev env with docker-compose