diff --git a/Docker-usage-instructions.md b/Docker-usage-instructions.md index 0a03f8a..4a4837e 100644 --- a/Docker-usage-instructions.md +++ b/Docker-usage-instructions.md @@ -42,5 +42,16 @@ You can also use the current working directory as the output directory by specif For more information, please refer to the [Dockerfile](https://github.com/Tyrrrz/DiscordChatExporter/blob/master/Dockerfile) and [Docker documentation](https://docs.docker.com/engine/reference/run/).
To get your Token and Channel IDs, please refer to [this page](https://github.com/Tyrrrz/DiscordChatExporter/wiki/Obtaining-Token-and-Channel-IDs). +### Environment variables (advanced) + +DCE.CLI accepts environment variables as fallback for the `--token` and `--bot` options. + +`DISCORD_TOKEN` for user tokens
+`DISCORD_TOKEN_BOT` for bot tokens + +You can use these variables either with a combination of the `--env-file` Docker option and a `.env` file or with the `--env` option.
+Please refer to the Docker documentation for more information:
+* [Docker run - Set environment variables](https://docs.docker.com/engine/reference/commandline/run/#set-environment-variables--e---env---env-file)
+ ## Special thanks to [@simnalamburt](https://github.com/simnalamburt) (dockerize) and [@Nimja](https://github.com/nimja) (better instructions) \ No newline at end of file