Files
compose-projects-services/monitoring/docker-compose.yml

118 lines
3.4 KiB
YAML

services:
scrutiny-influxdb:
container_name: scrutiny-influxdb
image: influxdb:2.1-alpine
ports:
- 8086:8086
volumes:
- ./scrutiny/config/influxdb2/db:/var/lib/influxdb2
- ./scrutiny/config/influxdb2/config:/etc/influxdb2
environment:
- DOCKER_INFLUXDB_INIT_MODE=setup
- DOCKER_INFLUXDB_INIT_USERNAME=Admin
- DOCKER_INFLUXDB_INIT_PASSWORD=asdf1234
- DOCKER_INFLUXDB_INIT_ORG=homelab
- DOCKER_INFLUXDB_INIT_BUCKET=scrutiny
- DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=3249085v098scnm#386
restart: unless-stopped
networks:
- monitoring
scrutiny:
container_name: scrutiny
image: ghcr.io/analogj/scrutiny:master-web
ports:
- 8081:8080
volumes:
- ./scrutiny/config/scrutiny/config:/opt/scrutiny/config
environment:
- SCRUTINY_WEB_INFLUXDB_HOST=influxdb
- SCRUTINY_WEB_INFLUXDB_PORT=8086
- SCRUTINY_WEB_INFLUXDB_TOKEN=3249085v098scnm#386
- SCRUTINY_WEB_INFLUXDB_ORG=homelab
- SCRUTINY_WEB_INFLUXDB_BUCKET=scrutiny
# Optional but highly recommended to notify you in case of a problem
- SCRUTINY_NOTIFY_URLS=["http://http://192.168.1.202:9898/SMART"]
depends_on:
- scrutiny-influxdb
restart: unless-stopped
networks:
# - notifications
- monitoring
glances:
#image: nicolargo/glances:3.4.0.5-full
image: nicolargo/glances:latest-full
container_name: glances
restart: always
pid: host
ports:
- 61208:61208
volumes:
- /var/run/docker.sock:/var/run/docker.sock
# Uncomment the below line if you want glances to display host OS detail instead of container's
- /etc/os-release:/etc/os-release:ro
- /mnt/restic:/restic
- /:/host:ro
environment:
- "GLANCES_OPT=-w"
uptime-kuma:
image: louislam/uptime-kuma:1
container_name: uptime-kuma
volumes:
- ./uptime-kuma/uptime-kuma-data:/app/data
ports:
- 3001:3001 # <Host Port>:<Container Port>
restart: always
environment:
- TZ="America/Sao_Paulo"
ntfy:
image: binwiederhier/ntfy
container_name: ntfy
command:
- serve
environment:
- TZ=America/Sao_Paulo # optional: Change to your desired timezone
#user: UID:GID # optional: Set custom user/group or uid/gid
- NTFY_ENABLE_LOGIN=true
- NTFY_AUTH_FILE=/var/lib/ntfy/auth.db
- NTFY_CACHE_FILE=/var/lib/ntfy/cache.db
- NTFY_BASE_URL=https://ntfy.ccalifice.com
- NTFY_AUTH_DEFAULT_ACCESS=deny-all
- NTFY_BEHIND_PROXY=true
- NTFY_ATTACHMENT_CACHE_DIR=/var/lib/ntfy/attachments
volumes:
- ./ntfy/var/cache/ntfy:/var/cache/ntfy
- ./ntfy/var/lib/ntfy/:/var/lib/ntfy/
- ./ntfy/etc/ntfy:/etc/ntfy
ports:
- 9898:80
restart: unless-stopped
networks:
- caddy-net
homepage:
image: ghcr.io/gethomepage/homepage:latest
container_name: homepage
environment:
PUID: 1000
PGID: 1002
HOMEPAGE_ALLOWED_HOSTS: 192.168.1.202:3000
ports:
- 3000:3000
volumes:
- ./homepage/config:/app/config # Make sure your local config directory exists
- /mnt/servarr:/servarr
- /mnt/hdd_1tb:/hdd_1tb
restart: unless-stopped
networks:
caddy-net:
external: true
name: caddy-net
monitoring: # A common network for all monitoring services to communicate into
# external: true
# notifications: # To Gotify or another Notification service
# external: true