Giter Site home page Giter Site logo

jerias / apprise-microservice Goto Github PK

View Code? Open in Web Editor NEW

This project forked from djmaze/apprise-microservice

0.0 0.0 0.0 7 KB

A small JSON API server for delivering notifications using Apprise

Home Page: https://hub.docker.com/r/mazzolino/apprise-microservice

Python 76.01% Dockerfile 23.99%

apprise-microservice's Introduction

Apprise-Microservice

Build Status Docker Stars Docker Pulls

A small JSON API server for delivering notifications using Apprise.

  • Notification services can be configured using an environment variable.
  • The service listens for JSON-formatted notification messages on port 5000.

This service is suitable as a sidecar service to another service in a container-based cluster.

Usage

These are quickstart instructions using Docker Compose.

  1. Copy app.env.example to app.env
  2. Set NOTIFICATION_URLS in app.env according to the documentation. You can add multiple targets, separated by commas.
  3. Start the container:
    docker-compose up
  4. In another terminal, you should now be able to trigger a notification using curl:
    curl -X POST --data '{"title": "my notification title", "body": "what a great notification service!"}' localhost:5000

See the file docker-compose.example.yml for a better example on how this supposed to work.

Using secrets

If running on a docker swarm cluster docker secrets can be used to set the notification URLS to avoid leaking credentials through environment variables:

  1. Set up the secret with the same content as you would with the regular environment variable
  2. Attach the secret to the service
  3. Set the NOTIFICATION_URLS_FILE to the path where the secret is mounted in the service

apprise-microservice's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.