From f5e88a7ddadc4dd85008e4ccf915e75a5d0ac730 Mon Sep 17 00:00:00 2001 From: FlyingFathead Date: Sat, 5 Oct 2024 22:53:23 +0300 Subject: [PATCH] Docker setup --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a4e4f8b..ccd22a3 100644 --- a/README.md +++ b/README.md @@ -208,16 +208,18 @@ If the repository receives updates and you want to apply them, follow these step 4. Start a new container using the updated image: ```bash - sudo docker run --env-file .env -d telegrambot-openai-api + sudo docker run --env-file .env --name telegrambot-openai-api -d telegrambot-openai-api ``` +There is also a `docker_deploy.sh` script included that aims to make the rebuilding and deploying less of a hassle. + You should now have the TelegramBot-OpenAI-API running in a Docker container, fully connected to both Telegram and OpenAI. Enjoy your bot! If you run into any issues, consult the logs or reach out on the repository's [Issues page](https://github.com/FlyingFathead/TelegramBot-OpenAI-API/issues). --- -# Updating +# Updating your `config.ini` - Use the `configmerger.py` to update old configuration files into a newer version's `config.ini`. You can do this by saving a copy of your existing config to i.e. a file named `myconfig.txt` and including in it the lines you want to keep for the newer version.