Files
store-scraper-bot/docker-compose.yml
T
tiennm99 a656a18ce8 feat: initial JavaScript port of store-scraper-bot
Node.js 20+ ESM port mirroring Java/Go implementations.

- 13 Telegram commands matching Java identifiers
- MongoDB schema parity (common, group, apple_app, google_app collections)
- Apple/Google scrapers calling store-scraper.vercel.app with 10-min cache
- Daily 7am Vietnam-time cron with weekend-silent mode
- HTML table renderer matching Java/Go output
- Docker + Compose (prod and dev)

Untested end-to-end against live Telegram or upstream API.
2026-04-26 20:16:00 +07:00

40 lines
863 B
YAML

version: '3.8'
services:
bot:
build: .
container_name: js-store-scraper-bot
restart: unless-stopped
environment:
- TELEGRAM_BOT_TOKEN=${TELEGRAM_BOT_TOKEN}
- TELEGRAM_BOT_USERNAME=${TELEGRAM_BOT_USERNAME}
- MONGODB_CONNECTION_STRING=mongodb://mongodb:27017
- MONGO_DATABASE=store_scraper_bot
- ENV=${ENV:-PRODUCTION}
- ADMIN_IDS=${ADMIN_IDS}
- SOURCE_COMMIT=${SOURCE_COMMIT:-unknown}
depends_on:
- mongodb
networks:
- bot-network
mongodb:
image: mongo:7.0
container_name: js-store-scraper-mongodb
restart: unless-stopped
environment:
- MONGO_INITDB_DATABASE=store_scraper_bot
volumes:
- mongodb_data:/data/db
networks:
- bot-network
ports:
- "27017:27017"
networks:
bot-network:
driver: bridge
volumes:
mongodb_data: