define discordbot container

This commit is contained in:
deflax 2024-01-15 04:42:05 +02:00
parent 6efa107932
commit 728c368db0
4 changed files with 30 additions and 3 deletions

View file

@ -60,7 +60,7 @@ services:
depends_on:
- "restreamer"
build: ./src/scheduler
image: stream-scheduler:latest
image: tv-scheduler:latest
env_file:
- "variables.env"
volumes:
@ -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"

11
src/discordbot/Dockerfile Normal file
View file

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

View file

@ -0,0 +1 @@
discord.py==2.3.2

View file

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