Add Dockerfile and docker-compose

This commit is contained in:
Baruch Odem 2020-04-23 22:11:24 +03:00
parent 1d5a70beed
commit a86c37b827
2 changed files with 24 additions and 0 deletions

7
Dockerfile Normal file
View file

@ -0,0 +1,7 @@
FROM python:3
COPY telegram-download-daemon.py /
RUN pip install telethon cryptg
CMD [ "python", "./telegram-download-daemon.py" ]

17
docker-compose.yml Normal file
View file

@ -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: