From c1879465d6238ad96a6da122e79a2bde76169a9b Mon Sep 17 00:00:00 2001 From: pluja Date: Wed, 19 Apr 2023 18:16:32 +0200 Subject: [PATCH] update docker compose --- .gitignore | 1 - README.md | 1 - docker-compose.yml | 8 ++++++++ example.docker-compose.yml | 14 -------------- 4 files changed, 8 insertions(+), 16 deletions(-) create mode 100644 docker-compose.yml delete mode 100644 example.docker-compose.yml diff --git a/.gitignore b/.gitignore index af85215..0e7f7e4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ -docker-compose.yml venv/ .env *.db diff --git a/README.md b/README.md index e810eee..ebd59e4 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,6 @@ Self hosting this chatbot is pretty easy. You just need to follow this steps: 4. Setup the bot: 1. Clone this repo. - 2. Rename the `example.docker-compose.yml` file to `docker-compose.yml`. 2. Rename the `example.env` file to `.env`. 3. Edit the environment variables from the `.env` file: 1. Set your OPENAI_TOKEN. diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..24382cf --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,8 @@ +version: '3.9' +services: + chatbot: + build: . + env_file: + - .env + volumes: + - ./db_data:/app/db_data \ No newline at end of file diff --git a/example.docker-compose.yml b/example.docker-compose.yml deleted file mode 100644 index e7bddd9..0000000 --- a/example.docker-compose.yml +++ /dev/null @@ -1,14 +0,0 @@ -version: '3.9' -services: - chatbot: - build: - dockerfile: Dockerfile - environment: - OPENAI_API_KEY: "XXX" - OPENAI_MODEL: gpt-3.5-turbo - CHATGPT_SYSTEM_PROMPT: "You are a helpful assistant." - CHATGPT_TEMPERATURE: 1.0 - CHATGPT_MAX_USER_CONTEXT: 5 - WHISPER_TO_CHAT: 1 - BOT_TOKEN: "XXX" - BOT_ALLOWED_USERS: USER_ID_1,USER_ID_2 \ No newline at end of file