update docker compose

main
pluja 2023-04-19 18:16:32 +02:00
rodzic 486a6157a9
commit c1879465d6
4 zmienionych plików z 8 dodań i 16 usunięć

1
.gitignore vendored
Wyświetl plik

@ -1,4 +1,3 @@
docker-compose.yml
venv/
.env
*.db

Wyświetl plik

@ -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.

Wyświetl plik

@ -0,0 +1,8 @@
version: '3.9'
services:
chatbot:
build: .
env_file:
- .env
volumes:
- ./db_data:/app/db_data

Wyświetl plik

@ -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