Unverified Commit 18738f73 authored by Julian Raufelder's avatar Julian Raufelder Committed by GitHub
Browse files

Add ciao (#33)



* Add ciao

* Apply suggestions from code review

Co-authored-by: default avatarTom Moulard <tom@moulard.org>

* Add gitignore

* chore: fix tests

Co-authored-by: default avatarTom Moulard <tom@moulard.org>
parent 9d243b94
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
CIAO_IMAGE_VERSION=
CIAO_PROMETHEUS_ENABLED=
ELASTICSEARCH_CLUSTER_NAME=
ELASTICSEARCH_DISCOVERY_TYPE=
ELASTICSEARCH_IMAGE_VERSION=

ciao/.gitignore

0 → 100644
+1 −0
Original line number Diff line number Diff line
db

ciao/README.md

0 → 100644
+7 −0
Original line number Diff line number Diff line
# ciao

https://github.com/brotandgames/ciao

ciao checks HTTP(S) URL endpoints for a HTTP status code (or errors on the lower TCP stack) and sends a notification on status change via E-Mail or Webhooks.

It uses Cron syntax to schedule the checks and comes along with a Web UI and a RESTful JSON API.
+18 −0
Original line number Diff line number Diff line
version: '2'

services:
  ciao:
    image: brotandgames/ciao:${CIAO_IMAGE_VERSION:-latest}
    volumes:
      - './ciao/db:/app/db/sqlite/'
    networks:
      - 'srv'
    restart: always
    environment:
      PROMETHEUS_ENABLED: ${CIAO_PROMETHEUS_ENABLED:-false}
      TIME_ZONE: ${TZ:-Europe/Paris}
    labels:
      - 'traefik.enable=true'
      - 'traefik.http.routers.ciao.rule=Host(`ciao.${SITE:-localhost}`)'
      - 'traefik.http.services.ciao.loadbalancer.server.port=3000'
      - 'traefik.http.routers.ciao.middlewares=basic_auth@docker'
+15 −0
Original line number Diff line number Diff line
@@ -78,6 +78,21 @@ services:
    - /sys:/sys:ro
    - /var/lib/docker:/var/lib/docker:ro
    - /var/run:/var/run:rw
  ciao:
    environment:
      PROMETHEUS_ENABLED: "false"
      TIME_ZONE: Europe/Paris
    image: brotandgames/ciao:latest
    labels:
      traefik.enable: "true"
      traefik.http.routers.ciao.middlewares: basic_auth@docker
      traefik.http.routers.ciao.rule: Host(`ciao.localhost`)
      traefik.http.services.ciao.loadbalancer.server.port: '3000'
    networks:
      srv: {}
    restart: always
    volumes:
    - /home/runner/work/make-my-server/make-my-server/ciao/db:/app/db/sqlite:rw
  codimd:
    depends_on:
      codimd-db: