I'm trying to get a PoC up and running for my coll...
# ask-questions
b
I'm trying to get a PoC up and running for my collegues using docker compose. Is there a way to get the client key to be set in the .env of our nextjs app dynamically to have an easier setup?
f
the client keys are for the SDKs, no?
b
Yep!
f
you can pass it in any way you like - the client key is not really a secret
but you may need it to change it per environment
b
I was looking for a way to run
docker-compose up
and have the key set already. But realize that might be weird
f
oh, in the GrowthBook docker?
ya, that would be a bit unusual
if its not within GrowthBook, you could do that via the docker-compose.yml file
b
Basically it would mean a preset key on docker-compose up.
f
oh, I see
that key value is stored in mongodb - you could make a quick script to set the client key to the one you want when doing docker-compose up
b
Ah, good idea, thanks!