From a86c37b827269e1227251cd244357f0d4662f9ce Mon Sep 17 00:00:00 2001 From: Baruch Odem Date: Thu, 23 Apr 2020 22:11:24 +0300 Subject: [PATCH] Add Dockerfile and docker-compose --- Dockerfile | 7 +++++++ docker-compose.yml | 17 +++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 Dockerfile create mode 100644 docker-compose.yml 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