diff --git a/docker-compose.yml b/docker-compose.yml index 5c0ddf6..1f656f6 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -60,9 +60,9 @@ services: depends_on: - "restreamer" build: ./src/scheduler - image: stream-scheduler:latest + image: tv-scheduler:latest env_file: - - "variables.env" + - "variables.env" volumes: - "./config/scheduler:/config" - "./data/recorder:/recordings" @@ -72,6 +72,19 @@ services: labels: - meta.role=scheduler + discordbot: + depends_on: + - "scheduler" + build: ./src/discordbot + image: tv-discordbot:latest + env_file: + - "variables.env" + restart: unless-stopped + networks: + - net + labels: + - meta.role=discordbot + archive-api: depends_on: - "scheduler" diff --git a/src/discordbot/Dockerfile b/src/discordbot/Dockerfile new file mode 100644 index 0000000..9ae0582 --- /dev/null +++ b/src/discordbot/Dockerfile @@ -0,0 +1,11 @@ +FROM python:3-bookworm + +WORKDIR /python-docker + +COPY requirements.txt requirements.txt +RUN pip3 install -r requirements.txt + + +COPY . . + +CMD ["python", "./app.py"] \ No newline at end of file diff --git a/src/discordbot/requierments.txt b/src/discordbot/requierments.txt new file mode 100644 index 0000000..446ed9b --- /dev/null +++ b/src/discordbot/requierments.txt @@ -0,0 +1 @@ +discord.py==2.3.2 \ No newline at end of file diff --git a/variables.env.dist b/variables.env.dist index 31eb362..9cdfb75 100644 --- a/variables.env.dist +++ b/variables.env.dist @@ -1,7 +1,9 @@ BASE_URL=example.com EMAIL=info@example.com +CORE_LOG_LEVEL=warn CORE_API_HOSTNAME=stream.example.com CORE_API_AUTH_USERNAME=admin CORE_API_AUTH_PASSWORD=changeme -CORE_LOG_LEVEL=warn SCHEDULER_LOG_LEVEL=warn +SCHEDULER_API_HOSTNAME=tv.example.com +DISCORDBOT_TOKEN=changeme \ No newline at end of file