-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
74 lines (71 loc) · 2.52 KB
/
docker-compose.yml
File metadata and controls
74 lines (71 loc) · 2.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
version: '3.9'
services:
# YOU CAN KEEP OR ADD YOUR EXISTING SERVICES HERE!
# Nginx example service
# You can remove this nginx service
nginx:
image: nginx:latest
ports:
- "8080:80"
- "8443:443"
volumes:
- "$WWW_PROJECT_DIR:/usr/share/nginx/html" # Replace it with the actual path
networks:
- internal-network
# Notif360
notif360:
build:
args:
uid: 1000 # echo $(id -u)
gid: 1001 # echo $(id -g)
context: ./
dockerfile: ./notif360.Dockerfile
command: /bin/sh -c "
chown root:1001 /etc/crontabs/root &&
crond -f"
image: alpine3.19.1-notif360:locally
networks:
- internal-network
volumes:
- "./notif360/20-scheduler:/etc/crontabs/root"
- "./notif360:/opt/datacareph/notif360"
- "$WWW_PROJECT_DIR:/usr/share/nginx/html" # Replace it with the actual path
labels:
- "traefik.enable=false"
environment:
# You can leave these default values
- SKIP_SYSTEM_CHECK=no
- FORCE_SEND_NOTIFICATION=no
- PARTIAL_SYSTEM_CHECK=no
- CHECK_TARGET_DIRECTORIES="/home/ /var/www/ /opt/"
- TARGET_DIR_MAX_SIZE="1024"
- MAX_KEEP_LOGS=5
- DISK_THRESHOLD=85
- MEMORY_THRESHOLD=75
- CPU_THRESHOLD=70
- DOMAINS_TO_CHECK="google.com cloudflare.com"
- URLS_TO_SCAN="https://www.google.com/ https://www.cloudflare.com/"
- VIRUSTOTAL_API_KEY="<your-virustotal-api-key>"
- SLACK_WEBHOOK_URL=https://hooks.slack.com/services/ABCDE012FGH/IJKLMN034/slack-generated-uri-12345678
- SMTP_SERVER=mx1.your-smtp.com
- SMTP_PASSWORD="<your-secure-password>"
# You can leave these default values
- SMTP_PORT=587
- USE_SSL=false
- REQUEST_TIMEOUT=30
- MAX_TRIES=3
- MAX_TRIES_INTERVAL=5
- SEND_COMMANDS_DELAY=3
- SENDER_NAME="Notifications DataCarePh"
- SENDER_EMAIL=""
- RECEIVER_NAME="There"
- RECEIVER_EMAIL="[email protected]"
- CARBON_COPY="[email protected] [email protected]"
- CARBON_COPY_FULL="Carbon Copy 1 <[email protected]>, Carbon Copy 2 <[email protected]>"
- EMAIL_SUBJECT="Scheduled Notification - Client Service Status"
- COMPANY_ADDRESS="Iloilo, 5000, Philippines"
- UNSUBSCRIBE_URL="https://www.your-website.co/?email=unsubscribe&verify=true"
- PREHEADER_TEXT="You have received a scheduled notification. Please do not reply to this message"
networks:
internal-network: