chore(docker_backup): quiethost new crontab, diun, fstab, ollama, node-exporter
first backup on quiethost
This commit is contained in:
1 parent
1fb97c2097
commit
eb59830e40
5 files changed
+144
No files matched your search
@@ -0,0 +1,25 @@
|
||||
# Edit this file to introduce tasks to be run by cron.
|
||||
#
|
||||
# Each task to run has to be defined through a single line
|
||||
# indicating with different fields when the task will be run
|
||||
# and what command to run for the task
|
||||
#
|
||||
# To define the time you can provide concrete values for
|
||||
# minute (m), hour (h), day of month (dom), month (mon),
|
||||
# and day of week (dow) or use '*' in these fields (for 'any').
|
||||
#
|
||||
# Notice that tasks will be started based on the cron's system
|
||||
# daemon's notion of time and timezones.
|
||||
#
|
||||
# Output of the crontab jobs (including errors) is sent through
|
||||
# email to the user the crontab file belongs to (unless redirected).
|
||||
#
|
||||
# For example, you can run a backup of all your user accounts
|
||||
# at 5 a.m every week with:
|
||||
# 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/
|
||||
#
|
||||
# For more information see the manual pages of crontab(5) and cron(8)
|
||||
#
|
||||
# m h dom mon dow command
|
||||
*/5 * * * * /home/lucas/scripts/docker_compose/node-exporter-pubip-docker-states.sh && logger "CRON_SUCCESS smartmon" || logger "CRON_FAILURE smartmon"
|
||||
*/1 * * * * /home/lucas/scripts/docker_compose/node-exporter-rocm-exporter.sh && logger "CRON_SUCCESS rocm" || logger "CRON_FAILURE rocm"
|
||||
@@ -0,0 +1,41 @@
|
||||
services:
|
||||
diun:
|
||||
image: crazymax/diun:latest
|
||||
container_name: diun
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||
- ./data:/data
|
||||
|
||||
environment:
|
||||
TZ: Europe/Vienna
|
||||
|
||||
# General
|
||||
DIUN_WATCH_WORKERS: 20
|
||||
DIUN_WATCH_SCHEDULE: "0 0 * * *"
|
||||
DIUN_PROVIDERS_DOCKER: "true"
|
||||
DIUN_PROVIDERS_DOCKER_WATCHBYDEFAULT: "true"
|
||||
# Metrics
|
||||
|
||||
DIUN_METRICS_ENABLED: "true"
|
||||
DIUN_METRICS_ADDR: ":9090"
|
||||
DIUN_METRICS_TOKEN: "Qj#8C!@Uz3uRWm@mCd@KH6Bo7nfQ4K"
|
||||
|
||||
# # Email notifications
|
||||
# DIUN_NOTIF_MAIL_HOST: smtp.web.de
|
||||
# DIUN_NOTIF_MAIL_PORT: 587
|
||||
# DIUN_NOTIF_MAIL_USERNAME: ll_m@web.de
|
||||
# DIUN_NOTIF_MAIL_PASSWORD: Mira2012
|
||||
# DIUN_NOTIF_MAIL_FROM: ll_m@web.de
|
||||
# DIUN_NOTIF_MAIL_TO: ll_m@web.de
|
||||
# DIUN_NOTIF_MAIL_INSECURESKIPVERIFY: "false"
|
||||
ports:
|
||||
- 9090:9090
|
||||
logging:
|
||||
driver: json-file
|
||||
options:
|
||||
max-size: "10m"
|
||||
max-file: "3"
|
||||
labels:
|
||||
- diun.enable=false
|
||||
@@ -0,0 +1,17 @@
|
||||
# /etc/fstab: static file system information.
|
||||
#
|
||||
# Use 'blkid' to print the universally unique identifier for a
|
||||
# device; this may be used with UUID= as a more robust way to name devices
|
||||
# that works even if disks are added and removed. See fstab(5).
|
||||
#
|
||||
# <file system> <mount point> <type> <options> <dump> <pass>
|
||||
# / was on /dev/nvme0n1p2 during curtin installation
|
||||
/dev/disk/by-uuid/7bc9c1f7-6d4b-431f-b213-9de3a98a7ab5 / ext4 defaults 0 1
|
||||
/dev/disk/by-uuid/e75f0b67-c158-40e9-b155-f08af89a82a9 none swap sw 0 0
|
||||
# /home was on /dev/nvme0n1p4 during curtin installation
|
||||
/dev/disk/by-uuid/96ecc248-410d-4c34-a664-7bbefb2b5ec8 /home ext4 defaults 0 1
|
||||
# /boot/efi was on /dev/nvme0n1p1 during curtin installation
|
||||
/dev/disk/by-uuid/9F46-5BD7 /boot/efi vfat defaults 0 1
|
||||
UUID=1729d425-17c9-4032-b8bd-98d60ca564ab /games ext4 defaults,nofail 0 2
|
||||
UUID=C28E92B18E929E0B /data ntfs defaults 0 2
|
||||
UUID=cc633125-60bc-4180-a53e-43015a4b6180 /stable ext4 defaults 0 2
|
||||
@@ -0,0 +1,16 @@
|
||||
services:
|
||||
node-exporter:
|
||||
container_name: node-exporter
|
||||
image: prom/node-exporter:latest
|
||||
restart: unless-stopped
|
||||
pid: host
|
||||
command:
|
||||
- '--path.rootfs=/host'
|
||||
- '--collector.textfile.directory=/textfile'
|
||||
volumes:
|
||||
- '/:/host:ro,rslave'
|
||||
- ./node_exporter/textfile_collector:/textfile:ro
|
||||
# ports:
|
||||
# - '9100:9100'
|
||||
network_mode: host
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
services:
|
||||
ollama:
|
||||
image: ollama/ollama:latest
|
||||
container_name: ollama
|
||||
restart: unless-stopped
|
||||
|
||||
ports:
|
||||
- "11434:11434"
|
||||
|
||||
environment:
|
||||
OLLAMA_HOST: 0.0.0.0:11434
|
||||
OLLAMA_VULKAN: "1"
|
||||
OLLAMA_KEEP_ALIVE: "10m"
|
||||
|
||||
devices:
|
||||
- /dev/dri:/dev/dri
|
||||
- /dev/kfd:/dev/kfd
|
||||
|
||||
group_add:
|
||||
- "44"
|
||||
- "990"
|
||||
|
||||
volumes:
|
||||
- /stable/ollama:/root/.ollama
|
||||
open-webui:
|
||||
image: ghcr.io/open-webui/open-webui:main
|
||||
container_name: open-webui
|
||||
restart: unless-stopped
|
||||
|
||||
depends_on:
|
||||
- ollama
|
||||
|
||||
ports:
|
||||
- "3000:8080"
|
||||
|
||||
environment:
|
||||
OLLAMA_BASE_URL: http://ollama:11434
|
||||
WEBUI_SECRET_KEY: "eae4639d2f8d5d8afee8cf65fe4d4f3b970b32cfd6c68f0455c9721ccd04d324"
|
||||
|
||||
volumes:
|
||||
- open_webui_data:/app/backend/data
|
||||
|
||||
volumes:
|
||||
ollama_data:
|
||||
open_webui_data:
|
||||
Reference in new issue
Block a user