define discordbot container
This commit is contained in:
parent
6efa107932
commit
728c368db0
4 changed files with 30 additions and 3 deletions
|
@ -60,9 +60,9 @@ services:
|
||||||
depends_on:
|
depends_on:
|
||||||
- "restreamer"
|
- "restreamer"
|
||||||
build: ./src/scheduler
|
build: ./src/scheduler
|
||||||
image: stream-scheduler:latest
|
image: tv-scheduler:latest
|
||||||
env_file:
|
env_file:
|
||||||
- "variables.env"
|
- "variables.env"
|
||||||
volumes:
|
volumes:
|
||||||
- "./config/scheduler:/config"
|
- "./config/scheduler:/config"
|
||||||
- "./data/recorder:/recordings"
|
- "./data/recorder:/recordings"
|
||||||
|
@ -72,6 +72,19 @@ services:
|
||||||
labels:
|
labels:
|
||||||
- meta.role=scheduler
|
- 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:
|
archive-api:
|
||||||
depends_on:
|
depends_on:
|
||||||
- "scheduler"
|
- "scheduler"
|
||||||
|
|
11
src/discordbot/Dockerfile
Normal file
11
src/discordbot/Dockerfile
Normal 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"]
|
1
src/discordbot/requierments.txt
Normal file
1
src/discordbot/requierments.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
discord.py==2.3.2
|
|
@ -1,7 +1,9 @@
|
||||||
BASE_URL=example.com
|
BASE_URL=example.com
|
||||||
EMAIL=info@example.com
|
EMAIL=info@example.com
|
||||||
|
CORE_LOG_LEVEL=warn
|
||||||
CORE_API_HOSTNAME=stream.example.com
|
CORE_API_HOSTNAME=stream.example.com
|
||||||
CORE_API_AUTH_USERNAME=admin
|
CORE_API_AUTH_USERNAME=admin
|
||||||
CORE_API_AUTH_PASSWORD=changeme
|
CORE_API_AUTH_PASSWORD=changeme
|
||||||
CORE_LOG_LEVEL=warn
|
|
||||||
SCHEDULER_LOG_LEVEL=warn
|
SCHEDULER_LOG_LEVEL=warn
|
||||||
|
SCHEDULER_API_HOSTNAME=tv.example.com
|
||||||
|
DISCORDBOT_TOKEN=changeme
|
Loading…
Reference in a new issue