# help

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

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
command line arguments. (E.g."$POLICY_DIR"
). • The config file supports environment variable interpolation. So you can craft a config file that references env vars using the syntax
and bake that into your container

Kushagra Indurkhya

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