Hello,
I am new to using convox and trying to migrate an old gen1 app to gen2. A bunch of our containers were getting link env vars (HOST
, SCHEMA
, ect.) injected using the links
tag. I was wondering what the best practice for implementing these links in gen2 would be.
Thanks
Where are your resources? Can you share your convox.yml?
The TL;DR is
- Services in a convox.yml can link to a resource in a convox.yml and will get a <RESOURCE_NAME>_URL env for each linked resource. The separate individual variables (e.g., HOST, SCHEMA) don’t come through any more.
- If you can’t use a convox.yml resource definition, then you just set your _URL variables as normal ENVs.