Skip to content

Commit

Permalink
updated docker compose docs
Browse files Browse the repository at this point in the history
  • Loading branch information
maidul98 committed Nov 21, 2022
1 parent fd99b10 commit 505313c
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions docs/integrations/docker-compose.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -48,10 +50,7 @@ export INFISICAL_TOEKN_FOR_WEB=<token>

# Token refers to the token we generated in step 2 for this service
export INFISICAL_TOEKN_FOR_API=<token>
```

Then run your compose file in the same terminal.

```bash
# Then run your compose file in the same terminal.
docker-compose ...
```

0 comments on commit 505313c

Please sign in to comment.