app#

app()[source]#

Creates .env file for a trade-executor Docker container.

  • Reads public .env configuration variables from a given file

  • Reads secret environment variables from passed environment variables

  • Validates we have required variables to run a live strategy

  • Writes the output to a single .env file that can be read by Docker

  • Operates on environment variables, stdin and stdout streams

Usage:

# Load your non-committed secrets from the server root

source ~/my-secrets.env

# Combine the env configuration file with the secrets

prepare-docker-env env/my-config.env ~/docker-final.env

Never publish or commit the final generated environment file, as it contains security critical variables. Leaking these allow stealing of your assets.