Sign inSign up

acidrs/mysticbinder

By acidrs

•Updated almost 2 years ago

Image
0

348

acidrs/mysticbinder repository overview

⁠Mystic Binder

Mystic Binder is a containerized Python application designed to fetch and store Magic: The Gathering card data from the Scryfall API into a PostgreSQL database. The application includes robust notifications via Discord Webhooks and scheduled data updates using cron.


⁠Features

  • Fetches and processes bulk Magic: The Gathering card data from Scryfall.
  • Stores detailed card information in a PostgreSQL database.
  • Sends success and failure notifications to Discord via webhooks.
  • Automates daily data updates using cron.
  • Provides an hourly countdown until the next scheduled run.

⁠Requirements

  • Docker
  • PostgreSQL database
  • Discord Webhook for notifications

⁠Environment Variables

The application requires the following environment variables to be set:

VariableDescription
DISCORD_WEBHOOK_URLURL for the Discord Webhook to send notifications.
DB_NAMEName of the PostgreSQL database.
DB_USERUsername for connecting to the database.
DB_PASSWORDPassword for the database user.
DB_HOSTHostname or IP address of the PostgreSQL server.

⁠Docker Compose Configuration

version: '3.8'

services:
  mystic-binder:
    image: mystic-binder:latest
    container_name: mystic-binder
    environment:
      - DISCORD_WEBHOOK_URL=https://discord.com/api/webhooks/your-webhook-id
      - DB_NAME=mysticbinder
      - DB_USER=mbadmin
      - DB_PASSWORD=yourpassword
      - DB_HOST=localhost
    volumes:
      - mystic-binder-data:/app/data
    restart: unless-stopped

Tag summary

Content type

Image

Digest

sha256:fd92dfa05…

Size

81.4 MB

Last updated

almost 2 years ago

docker pull acidrs/mysticbinder