From c89f78af96546eddbf19cda7a87bf91e27a7fca5 Mon Sep 17 00:00:00 2001 From: Maria Alexis Sales Date: Mon, 12 Aug 2024 16:37:10 -0700 Subject: [PATCH] dockerized the bot --- Dockerfile | 11 +++++++++++ docker-compose.yml | 20 ++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 Dockerfile create mode 100644 docker-compose.yml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..11ea01b --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +FROM python:3.9 + +WORKDIR / + +COPY . / + +RUN pip install --no-cache-dir -r requirements.txt + +EXPOSE 8000 + +CMD ["python", "Teapot.py"] diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..4233e11 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,20 @@ +services: + teapot: + build: . + ports: + - "4000:8000" + environment: + CONFIG_VERSION: "0.1" + BOT_TOKEN: "your_bot_token_here" + BOT_PREFIX: "['/teapot ', '/tp ']" + BOT_STATUS: "/teapot , /tp | Teapot.py 0.1" + STORAGE_TYPE: "flatfile" + OSU_API_KEY: "your_osu_api_key_here" + DB_HOST: "127.0.0.1" + DB_PORT: "3306" + DB_SCHEMA: "teapot" + DB_USER: "teapot" + DB_PASSWORD: "your_db_password_here" + LAVALINK_HOST: "127.0.0.1" + LAVALINK_PORT: "2333" + LAVALINK_PASSWORD: "your_lavalink_password_here"