Is it possible to define config as environment var...
# help
p
Is it possible to define config as environment variables (f.ex. for google cloud run)? How to format them? like this server.httpListenAddr or server_httpListenAddr?
c
There are two ways to deal with this: • You can use commandline arguments to define config. For example
--set=storage.driver=disk
sets the
storage.driver
config value. You can repeat
--set
as many times as you like. • You can create a config file with placeholders that read their values from the environment by using the syntax
${VARIABLE}
and bake that into the container image.
p
thanks that helped