Go to file
Nathan Woodburn c88e6b90ce
All checks were successful
Build Docker / Build Docker (push) Successful in 26s
feat: Add github link and fix a small crash with reserved domains
2023-12-11 21:37:58 +11:00
.gitea/workflows feat: Add initial code 2023-12-11 15:28:20 +11:00
templates feat: Add github link and fix a small crash with reserved domains 2023-12-11 21:37:58 +11:00
.gitignore feat: Add initial code 2023-12-11 15:28:20 +11:00
account.py feat: Add initial notifications 2023-12-11 20:53:26 +11:00
Dockerfile feat: Add dockerfile 2023-12-11 15:29:28 +11:00
domains.py feat: Add github link and fix a small crash with reserved domains 2023-12-11 21:37:58 +11:00
LICENSE.md Initial commit 2023-12-11 13:16:19 +11:00
main.py feat: Add initial notifications 2023-12-11 20:53:26 +11:00
README.md docs: Update docker compose yaml to include hsd and email info 2023-12-11 21:01:39 +11:00
requirements.txt feat: Add initial code 2023-12-11 15:28:20 +11:00
server.py feat: Update domain synchronization frequency 2023-12-11 20:59:06 +11:00

HNS Alert

Docker compose

version: '3'
services:
  app:
    image: git.woodburn.au/nathanwoodburn/hnsalert:latest # for production
    # image: git.woodburn.au/nathanwoodburn/hnsalert:dev # for development
    ports:
      - "61495:5000"
    depends_on:
      - db
    environment:
      DB_HOST: db
      DB_USER: db_user
      DB_PASSWORD: db_password
      DB_NAME: alert_db
      EMAIL_FROM: noreply@hnshosting.au
      EMAIL_PASSWORD: supersecretemailpassword
      EMAIL_HOST: mail.woodburn.au
      EMAIL_PORT: 587
      EMAIL_USE_TLS: True
      HSD_API_KEY: supersecretkey
      HSD_IP: 10.2.1.15 # Set to your HSD IP
      HSD_PORT: 12037 # Only change if using a custom port (or regtest)
      HSD_WALLET_PORT: 12039 # Only change if using a custom port (or regtest)
      WORKERS: 2 # number of workers to run (should be 2 * number of cores)

  db:
    image: linuxserver/mariadb:latest
    environment:
      MYSQL_ROOT_PASSWORD: your-root-password
      MYSQL_DATABASE: alert_db
      MYSQL_USER: db_user
      MYSQL_PASSWORD: db_password
    volumes:
      - db_data:/var/lib/mysql
volumes:
  db_data: