mirror of
https://github.com/PAPAMICA/docker-compose-collection.git
synced 2026-01-18 16:27:25 +01:00
45 lines
1.6 KiB
YAML
45 lines
1.6 KiB
YAML
# Maintainer: Mickael "PAPAMICA" Asseline
|
|
# Update: 2022-05-13
|
|
|
|
#& type: 3
|
|
#& title: Apprise API
|
|
#& description: Send notifications to more then 70+ services.
|
|
#& note: Website: <a href='https://github.com/caronc/apprise-api' target='_blank' rel='noopener'>Github.com</a>
|
|
#& categories: SelfHosted, PAPAMICA
|
|
#& platform: linux
|
|
#& logo: https://img.papamica.com/logo/apprise.png
|
|
|
|
#% SERVICE: Name of the service (No spaces or points) [apprise-api]
|
|
#% DATA_LOCATION: Data localization (Example: /apps/service) [/_data/apps]
|
|
#% URL: Service URL (Example: service.papamica.fr or service.com)
|
|
#% NETWORK: Your Traefik network (Example: proxy) [proxy]
|
|
|
|
# Work with Portainer
|
|
version: "2"
|
|
services:
|
|
apprise-api:
|
|
image: caronc/apprise:latest
|
|
container_name: $SERVICE
|
|
volumes:
|
|
- $DATA_LOCATION/$SERVICE/config:/config
|
|
healthcheck:
|
|
test: ["CMD", "bash", "-c", "exec 5<>/dev/tcp/127.0.0.1/8000 && echo -e 'GET /healthz HTTP/1.1\n\n' >&5 && cat <&5 | head -n 1 | grep 200"]
|
|
interval: 1m
|
|
timeout: 30s
|
|
retries: 3
|
|
restart: unless-stopped
|
|
networks:
|
|
- default
|
|
labels:
|
|
- "autoupdate=monitor" # https://github.com/PAPAMICA/container-updater
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.$SERVICE.entrypoints=https"
|
|
- "traefik.http.routers.$SERVICE.rule=Host(`$URL`)"
|
|
- "traefik.http.routers.$SERVICE.tls=true"
|
|
- "traefik.http.routers.$SERVICE.tls.certresolver=http"
|
|
- "traefik.http.services.$SERVICE.loadbalancer.server.port=8000"
|
|
- "traefik.docker.network=$NETWORK"
|
|
networks:
|
|
default:
|
|
external:
|
|
name: $NETWORK |