Find out how to use Infisical to inject environment variables into services defined in your Docker Compose file.
INFISICAL_MACHINE_IDENTITY_CLIENT_ID
, and INFISICAL_MACHINE_IDENTITY_CLIENT_SECRET
equal to the client ID and client secret of the machine identity(s) you created in the previous step.In the example below, we set two sets of client ID and client secret for the services.For the web service we set INFISICAL_MACHINE_IDENTITY_CLIENT_ID_FOR_WEB
and INFISICAL_MACHINE_IDENTITY_CLIENT_SECRET_FOR_WEB
as the client ID and client secret respectively.For the API service we set INFISICAL_MACHINE_IDENTITY_CLIENT_ID_FOR_API
and INFISICAL_MACHINE_IDENTITY_CLIENT_SECRET_FOR_API
as the client ID and client secret respectively.INFISICAL_MACHINE_IDENTITY_CLIENT_ID
and INFISICAL_MACHINE_IDENTITY_CLIENT_SECRET
in your Docker Compose file.