From 505313c0d00edb814ec56fc063c8edff597decc6 Mon Sep 17 00:00:00 2001 From: Maidul Islam Date: Mon, 21 Nov 2022 09:56:36 -0500 Subject: [PATCH] updated docker compose docs --- docs/integrations/docker-compose.mdx | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/docs/integrations/docker-compose.mdx b/docs/integrations/docker-compose.mdx index b6a22f109e..9e16d93c6e 100644 --- a/docs/integrations/docker-compose.mdx +++ b/docs/integrations/docker-compose.mdx @@ -17,6 +17,8 @@ If you have multiple services and they do not use the same secrets, you will hav For each service you want to inject secrets into, set an environment variable called `INFISICAL_TOKEN` equal to a helpful identifier variable. This will ensure that you can set Infisical Tokens for multiple services. +For the example below, we have set `INFISICAL_TOEKN_FOR_WEB` and `INFISICAL_TOEKN_FOR_API` as the `INFISICAL_TOKEN` for the corresponding service. + ```yaml # Example Docker Compose file @@ -26,14 +28,14 @@ services: image: auledge-frontend container_name: auledge-frontend environment: - - INFISICAL_TOKEN: ${INFISICAL_TOEKN_FOR_WEB} + - INFISICAL_TOKEN=${INFISICAL_TOEKN_FOR_WEB} api: build: . image: auledge-backend container_name: auledge-backend environment: - - INFISICAL_TOKEN: ${INFISICAL_TOEKN_FOR_API} + - INFISICAL_TOKEN=${INFISICAL_TOEKN_FOR_API} ``` ### 4: Export shell variables @@ -48,10 +50,7 @@ export INFISICAL_TOEKN_FOR_WEB= # Token refers to the token we generated in step 2 for this service export INFISICAL_TOEKN_FOR_API= -``` - -Then run your compose file in the same terminal. -```bash +# Then run your compose file in the same terminal. docker-compose ... ```