CLI Support for Injecting Envars into Docker-Compose Containers without embedding the CLI in Container Images
Feature description
Currently, the Infisical CLI doesn't have a good way of injecting environment variables into services with docker-compose without needing to embed it into the image of each service.
The proposed method is to have the CLI inject environment variables into each docker container by wrapping the docker-compose up command.
Why would it be useful?
It would likely be incredibly impactful for anyone using docker-compose since they won't even have to embed the CLI into their docker images anymore.
Additional context
It would be cool to define a mapping from project ids to docker services for which service should be injected the environment variables from which Infisical project; then upon starting up with infisical run -- docker-compose up, it should inject according to that mapping — This has some parallels to the existing branching mechanism.
Source: Infisical/infisical