Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 530 Bytes

File metadata and controls

21 lines (17 loc) · 530 Bytes

Docker and Docker Compose

To substitute the environment variables in compose.yaml, use --env-file flag as follows:

docker compose --env-file ./compose.env up
# or
docker compose --env-file ./compose.env build
# or
docker compose --env-file ./compose.env down

To set environment variables in the container, use the environment directive in compose.yaml.

environment:
  - ORIGIN=${ORIGIN}
  - API_BACKEND_ADDRESS=${API_BACKEND_ADDRESS}
  - RUST_LOG=${RUST_LOG}
  - RUST_BACKTRACE=${RUST_BACKTRACE}