diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..7957e27 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3 + +COPY telegram-download-daemon.py / + +RUN pip install telethon cryptg + +CMD [ "python", "./telegram-download-daemon.py" ] \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..d934958 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,17 @@ +version: '3.5' + +services: + telegram-download-deamon: + build: . + image: telegram-download-deamon:latest + environment: + TELEGRAM_DEAMON_API_ID: "YOUR API ID HERE" + TELEGRAM_DEAMON_API_HASH: "YOUR API HASH HERE" + TELEGRAM_DEAMON_CHANNEL: "YOUR CHANNEL ID HERE" + TELEGRAM_DEAMON_DEST: "/downloads" + volumes: + - downloads:/downloads + restart: unless-stopped + +volumes: + downloads: \ No newline at end of file