This is a Docker container to run a telegram bot that tracks mydealz.de for new deals.
docker run -d --name=mydealz_bot \
--restart=always \
-v /opt/mydealz_bot/files:/usr/src/app/files \
-v /etc/localtime:/etc/localtime:ro \
--env BOT_TOKEN=<<YOUR_BOT_TOKEN>> \
weltraumpenner/mydealz_bot:latest
| Parameter | Description |
|---|---|
| --restart=always | Start the container when Docker starts (i.e. on boot/reboot). |
| -v /opt/mydealz_bot/files:/usr/src/app/files | Mount directory /usr/src/app/files from host machine. This directory contains the database, persistent chat-data and logs |
| -v /etc/localtime:/etc/localtime:ro | Use correct timezone from docker-host |
| --env BOT_TOKEN=<<YOUR_BOT_TOKEN>> | Your telegram-bot token. You can create one with @BotFather |
| --env OWN_ID=<<YOUR_TELEGRAM_ID>> | Your telegram-user-id. It's used to forward error-messages |
version: '3'
services:
mydealz:
container_name: mydealz
image: weltraumpenner/mydealz_bot:latest
restart: always
volumes:
- /opt/mydealz_bot/files:/usr/src/app/files
- /etc/localtime:/etc/localtime:ro
environment:
- BOT_TOKEN=<<YOUR_BOT_TOKEN>>
- OWN_ID=<<YOUR_TELEGRAM_ID>>
Content type
Image
Digest
sha256:b7d2dbef1…
Size
61.2 MB
Last updated
about 1 year ago
docker pull weltraumpenner/mydealz_bot