https://cerbos.dev logo
#help
Title
# help
k

Kushagra Indurkhya

02/13/2023, 6:57 AM
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

Charith (Cerbos)

02/13/2023, 7:51 AM
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

Kushagra Indurkhya

02/13/2023, 7:27 PM
Okay , Thanks for the clarification.
20 Views