Docker
Environment Variables
In Autotasker, environment variables can be set to configure the container’s behavior without modifying the application code. These variables can be declared directly or loaded from an external file.
Setting Variables Directly
Use the -e or --env option to pass environment variables directly in the command:
console
autotasker docker --env NAME=John --env AGE=30 /path/to/your/directory
Loading Variables from a File
You can also use an environment file with the --env-file option:
console
autotasker docker --env-file /path/to/your/env/file /path/to/your/directory
Environment file format:
makefile
NAME=John
AGE=30