dev v0.1.1 #3
@@ -3,6 +3,7 @@ ARG BUILD_DATE
|
|||||||
ARG VERSION
|
ARG VERSION
|
||||||
LABEL build_version="77th_eventcalendarntfy ${VERSION}, Build-date:- ${BUILD_DATE}"
|
LABEL build_version="77th_eventcalendarntfy ${VERSION}, Build-date:- ${BUILD_DATE}"
|
||||||
LABEL maintainer="chiko <chiko@xcsone.de>"
|
LABEL maintainer="chiko <chiko@xcsone.de>"
|
||||||
|
ENV TZ=Europe/Berlin
|
||||||
WORKDIR /opt/app
|
WORKDIR /opt/app
|
||||||
RUN set -eux && \
|
RUN set -eux && \
|
||||||
echo "Updating APT" && \
|
echo "Updating APT" && \
|
||||||
@@ -10,12 +11,12 @@ RUN set -eux && \
|
|||||||
apt-get upgrade -y -qq && \
|
apt-get upgrade -y -qq && \
|
||||||
echo "Installing tools" && \
|
echo "Installing tools" && \
|
||||||
apt-get install -y -qq \
|
apt-get install -y -qq \
|
||||||
curl unzip cron ca-certificates logrotate dos2unix && \
|
curl unzip cron ca-certificates logrotate dos2unix tzdata && \
|
||||||
echo "Remove exim" && \
|
echo "Remove exim" && \
|
||||||
apt-get remove -y -qq exim4 exim4-base exim4-daemon-light && \
|
apt-get remove -y -qq exim4 exim4-base exim4-daemon-light && \
|
||||||
echo "Cleaning up" && \
|
echo "Cleaning up" && \
|
||||||
apt-get --yes autoremove --purge && \
|
apt-get --yes autoremove --purge -qq && \
|
||||||
apt-get clean --yes && \
|
apt-get clean --yes -qq && \
|
||||||
rm --recursive --force --verbose /var/lib/apt/lists/* && \
|
rm --recursive --force --verbose /var/lib/apt/lists/* && \
|
||||||
rm --recursive --force --verbose /tmp/* && \
|
rm --recursive --force --verbose /tmp/* && \
|
||||||
rm --recursive --force --verbose /var/tmp/* && \
|
rm --recursive --force --verbose /var/tmp/* && \
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
services:
|
services:
|
||||||
app:
|
app:
|
||||||
|
image: chiko/77th_eventcalendarntfy:dev
|
||||||
build: .
|
build: .
|
||||||
volumes:
|
volumes:
|
||||||
- ./data/db:/opt/app/data/db
|
- ./data/db:/opt/app/data/db
|
||||||
@@ -12,7 +13,7 @@ services:
|
|||||||
links:
|
links:
|
||||||
- apprise
|
- apprise
|
||||||
apprise:
|
apprise:
|
||||||
image: caronc/apprise:latest
|
image: caronc/apprise:1.2.2
|
||||||
hostname: apprise
|
hostname: apprise
|
||||||
environment:
|
environment:
|
||||||
- APPRISE_WORKER_COUNT=1
|
- APPRISE_WORKER_COUNT=1
|
||||||
@@ -29,8 +30,4 @@ services:
|
|||||||
test: ["CMD", "curl", "-f", "http://localhost:8000/status"]
|
test: ["CMD", "curl", "-f", "http://localhost:8000/status"]
|
||||||
interval: 5s
|
interval: 5s
|
||||||
timeout: 3s
|
timeout: 3s
|
||||||
retries: 5
|
retries: 5
|
||||||
# networks:
|
|
||||||
# default:
|
|
||||||
# external: true
|
|
||||||
# name: npm
|
|
||||||
@@ -9,7 +9,7 @@ export async function sendNotification(title: string, body: string, link?: strin
|
|||||||
const response = await fetch("http://apprise:8000/notify", {
|
const response = await fetch("http://apprise:8000/notify", {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
headers: {
|
headers: {
|
||||||
"Content-Type": "application/json"
|
"Content-Type": "application/json"
|
||||||
},
|
},
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
urls: [
|
urls: [
|
||||||
@@ -18,7 +18,7 @@ export async function sendNotification(title: string, body: string, link?: strin
|
|||||||
].join(","),
|
].join(","),
|
||||||
title: title,
|
title: title,
|
||||||
body: body,
|
body: body,
|
||||||
format: "text"
|
format: "markdown"
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
const responseBody = await response.json();
|
const responseBody = await response.json();
|
||||||
|
|||||||
Reference in New Issue
Block a user