Added containerization crap

This commit is contained in:
j4nk 2025-02-22 00:07:14 -05:00
parent 034547189b
commit 50f061f716
2 changed files with 28 additions and 0 deletions

20
docker-compose.yml Normal file
View File

@ -0,0 +1,20 @@
version: '3.8' # Specify the Docker Compose file format version
services:
qb:
image: docker.io/alpine:latest # Use the latest Nginx image from Docker Hub
volumes:
- ./bot.py:/bot.py # Mount a local directory to the container
- ./init.sh:/init.sh
- ./config.conf:/config.conf
- ./bartonfink.png:/bartonfink.png
command: /init.sh
qb_testing:
image: docker.io/alpine:latest # Use the latest Nginx image from Docker Hub
volumes:
- ./bot.py:/bot.py # Mount a local directory to the container
- ./init.sh:/init.sh
- ./config_testing.conf:/config.conf
- ./qbittorrent_logo.png:/qbittorrent_logo.png
command: /init.sh

8
init.sh Executable file
View File

@ -0,0 +1,8 @@
#!/bin/sh
apk add python3
apk add py3-pip
pip3 install --break-system-packages slixmpp
pip3 install --break-system-packages jellyfin-apiclient-python
exec python3 /bot.py