refactor: Move docker-compose files into Local Homelab/ directory

Restructures the project by moving all application-specific docker-compose.yml
files into a new `Local Homelab/` parent directory.

This change improves overall project organization and provides a clear
logical grouping for local homelab-related service configurations.

Affected files:
- `homeassistant/docker-compose.yml`
- `monitoring/docker-compose.yml`
- `teslamate/docker-compose.yml`

All are now located under `Local Homelab/<service>/docker-compose.yml`.
This commit is contained in:
2025-12-20 18:31:29 -05:00
parent a1671f676f
commit 2884d28aaa
3 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
services:
homeassistant:
image: lscr.io/linuxserver/homeassistant:latest
container_name: homeassistant
# network_mode: host
networks:
- pangolin-home
- teslamate_teslamate-internal
environment:
- PUID=1000
- PGID=1000
- TZ=America/New_York
volumes:
- /mnt/docker/home/homeassistant/data:/config
- /run/dbus:/run/dbus:ro
cap_add:
- NET_ADMIN
- NET_RAW
# ports:
# - 8123:8123 #optional
# devices:
# - /path/to/device:/path/to/device #optional
restart: unless-stopped
networks:
pangolin-home:
external: true
teslamate_teslamate-internal:
external: true

View File

@@ -0,0 +1,38 @@
version: '3.7'
services:
prometheus:
image: prom/prometheus:latest
# ports:
# - "9090:9090"
volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
command:
- '--config.file=/etc/prometheus/prometheus.yml'
deploy:
replicas: 1
placement:
constraints:
- node.role == manager
alertmanager:
image: prom/alertmanager:latest
# ports:
# - "9093:9093"
volumes:
- /mnt/docker/home/monitoring/data/alertmanager/data/config.yml:/etc/alertmanager/config.yml
command:
- '--config.file=/etc/alertmanager/config.yml'
deploy:
replicas: 1
placement:
constraints:
- node.role == manager
grafana:
image: grafana/grafana:latest
# ports:
# - "3000:3000"
volumes:
- /mnt/docker/home/monitoring/data/grafana/data:/var/lib/grafana
environment:
- GF_SECURITY_ADMIN_PASSWORD=admin
deploy:
replicas: 1

View File

@@ -0,0 +1,74 @@
services:
teslamate:
image: teslamate/teslamate:latest
restart: always
environment:
- ENCRYPTION_KEY=AA103626bb!
- DATABASE_USER=teslamate
- DATABASE_PASS=AA103626bb!
- DATABASE_NAME=teslamate
- DATABASE_HOST=database
- MQTT_HOST=mosquitto
ports:
- 4000:4000
volumes:
- /mnt/docker/home/teslamate/import:/opt/app/import
cap_drop:
- all
networks:
- teslamate
# - pangolin-home
database:
image: postgres:18-trixie
restart: always
environment:
- POSTGRES_USER=teslamate
- POSTGRES_PASSWORD=AA103626bb!
- POSTGRES_DB=teslamate
volumes:
- teslamate-db:/var/lib/postgresql
networks:
- teslamate
grafana:
image: teslamate/grafana:latest
restart: always
environment:
- DATABASE_USER=teslamate
- DATABASE_PASS=AA103626bb!
- DATABASE_NAME=teslamate
- DATABASE_HOST=database
ports:
- 3000:3000
volumes:
- teslamate-grafana-data:/var/lib/grafana
networks:
- teslamate
# - pangolin-home
mosquitto:
image: eclipse-mosquitto:2
restart: always
command: mosquitto -c /mosquitto-no-auth.conf
ports:
- 1883:1883
volumes:
- mosquitto-conf:/mosquitto/config
- mosquitto-data:/mosquitto/data
networks:
- teslamate
secrets:
password:
external: true
networks:
teslamate:
external: true
volumes:
teslamate-db:
teslamate-grafana-data:
mosquitto-conf:
mosquitto-data: