mirror of
https://github.com/alfem/telegram-download-daemon.git
synced 2025-03-01 08:33:11 +08:00
Add Dockerfile and docker-compose
This commit is contained in:
parent
1d5a70beed
commit
a86c37b827
2 changed files with 24 additions and 0 deletions
7
Dockerfile
Normal file
7
Dockerfile
Normal 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
17
docker-compose.yml
Normal 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:
|
Loading…
Reference in a new issue