diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..f8fe780 --- /dev/null +++ b/docker-compose.yml @@ -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 \ No newline at end of file diff --git a/init.sh b/init.sh new file mode 100755 index 0000000..471472a --- /dev/null +++ b/init.sh @@ -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