Hi all, while using docker image can the server co...
# help
k
Hi all, while using docker image can the server configuration be managed by environment instead of passing configuration file, i am deploying an ecs cluster in which i am passing the image now i can set the environment of the container for server configuration but attaching config file is bit complex and approach feels a bit over engineered
c
There are just too many configuration options to make all of them have distinct environment variables. You can either: • Define the configuration fields you want to override using
--set
command line arguments. (E.g.
--set=storage.disk.directory="$POLICY_DIR"
). • The config file supports environment variable interpolation. So you can craft a config file that references env vars using the syntax
${ENV_VAR}
and bake that into your container https://docs.cerbos.dev/cerbos/latest/configuration/index.html
k
Okay , Thanks for the clarification.