python docker bot for managing a coffee list spreadsheet on google spreadsheet
This code for the docker deployment is mostly copied & adapted from xstar97 using the reddit-auto-reply bot as a baseline: Link to github repo
nice implementation of python-telegram-bot with fastapi source code
version: "0.0.1"
services:
reddit-auto-reply:
image: ghcr.io/lukasmandok/telegram_coffee_bot_backend:latest
ports:
- "8080:3000"
environment:
- TELEGRAM_TOKEN=${TELEGRAM_TOKEN}
- BOT_HOST=${BOT_HOST}
- GSHEET_SSID=${GSHEET_SSID}
# - BOT_STATE=production
# - REDIS_HOST=localhost
# - REDIS_PASSWORD=password
# - REDIS_PORT=6379
# - CLIENT_ID=reddit_client_id
# - CLIENT_SECRET=reddit_client_secret
# - USERNAME=REDDIT_USER
# - PASSWORD=REDDIT_PASS
# - EXCLUDE_USERS=user1,user2 #delim by ,
# - COMMENT_TEXT="Hello world!"
restart: unless-stopped