mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 16:27:40 +00:00
updated docker compose docs
This commit is contained in:
@@ -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.
|
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.
|
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
|
```yaml
|
||||||
# Example Docker Compose file
|
# Example Docker Compose file
|
||||||
@@ -26,14 +28,14 @@ services:
|
|||||||
image: auledge-frontend
|
image: auledge-frontend
|
||||||
container_name: auledge-frontend
|
container_name: auledge-frontend
|
||||||
environment:
|
environment:
|
||||||
- INFISICAL_TOKEN: ${INFISICAL_TOEKN_FOR_WEB}
|
- INFISICAL_TOKEN=${INFISICAL_TOEKN_FOR_WEB}
|
||||||
|
|
||||||
api:
|
api:
|
||||||
build: .
|
build: .
|
||||||
image: auledge-backend
|
image: auledge-backend
|
||||||
container_name: auledge-backend
|
container_name: auledge-backend
|
||||||
environment:
|
environment:
|
||||||
- INFISICAL_TOKEN: ${INFISICAL_TOEKN_FOR_API}
|
- INFISICAL_TOKEN=${INFISICAL_TOEKN_FOR_API}
|
||||||
|
|
||||||
```
|
```
|
||||||
### 4: Export shell variables
|
### 4: Export shell variables
|
||||||
@@ -48,10 +50,7 @@ export INFISICAL_TOEKN_FOR_WEB=<token>
|
|||||||
|
|
||||||
# Token refers to the token we generated in step 2 for this service
|
# Token refers to the token we generated in step 2 for this service
|
||||||
export INFISICAL_TOEKN_FOR_API=<token>
|
export INFISICAL_TOEKN_FOR_API=<token>
|
||||||
```
|
|
||||||
|
|
||||||
Then run your compose file in the same terminal.
|
# Then run your compose file in the same terminal.
|
||||||
|
|
||||||
```bash
|
|
||||||
docker-compose ...
|
docker-compose ...
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user