homepage improvements

This commit is contained in:
2026-02-14 01:19:31 -03:00
parent 62c01cf33d
commit eeb7807632
6 changed files with 79 additions and 2 deletions

0
config/.gitkeep Normal file
View File

3
config/docker.yaml Normal file
View File

@@ -0,0 +1,3 @@
---
my-docker:
socket: tcp://socket-proxy:${SOCKET_PROXY_PORT}

28
config/services.yaml Normal file
View File

@@ -0,0 +1,28 @@
---
# Network & Infrastructure
- Network:
- Pi-hole Primary:
icon: pi-hole.png
href: http://[IP_ADDRESS1]/admin/ # REPLACE WITH REAL IP
widget:
type: pihole
url: http://[IP_ADDRESS1] # REPLACE WITH REAL IP
key: "" # REPLACE WITH API KEY
- Pi-hole Secondary:
icon: pi-hole.png
href: http://[IP_ADDRESS2]/admin/ # REPLACE WITH REAL IP
widget:
type: pihole
url: http://[IP_ADDRESS2] # REPLACE WITH REAL IP
key: "" # REPLACE WITH API KEY
# Automatic Discovery via Docker Attributes
# Services with 'homepage.group' labels will automatically appear here
# or in their specific groups if the group name matches.
# This tells Homepage to look for Docker containers with "homepage.*" labels
# and add them to the dashboard automatically.
- Docker:
- my-docker:
template: "" # Use default templates if available

15
config/settings.yaml Normal file
View File

@@ -0,0 +1,15 @@
---
title: Homelab
background:
image: https://images.unsplash.com/photo-1550684848-fac1c5b4e853?q=80&w=2070&auto=format&fit=crop
brightness: 50
theme: dark
color: slate
providers:
openweathermap:
apiKey: "" # Add your API key here
location: "Sao Paulo" # Add your location name or ID
units: metric

15
config/widgets.yaml Normal file
View File

@@ -0,0 +1,15 @@
---
- resources:
cpu: true
memory: true
disk: /
- search:
provider: duckduckgo
target: _blank
- datetime:
text_size: xl
format:
timeStyle: short
dateStyle: medium

View File

@@ -5,14 +5,16 @@ services:
restart: unless-stopped restart: unless-stopped
networks: networks:
- proxy - proxy
- socket_proxy
volumes: volumes:
- /srv/homelab/volumes/homepage/config:/app/config - ./config:/app/config
- /var/run/docker.sock:/var/run/docker.sock:ro # Docker socket is NOT mounted directly anymore
environment: environment:
- PUID=1000 - PUID=1000
- PGID=1000 - PGID=1000
- TZ=America/Sao_Paulo - TZ=America/Sao_Paulo
- HOMEPAGE_ALLOWED_HOSTS=${DOMAIN} - HOMEPAGE_ALLOWED_HOSTS=${DOMAIN}
- DOCKER_HOST=tcp://socket-proxy:${SOCKET_PROXY_PORT}
labels: labels:
- "traefik.enable=true" - "traefik.enable=true"
- "traefik.http.routers.homepage.rule=Host(`homepage.${DOMAIN}`)" - "traefik.http.routers.homepage.rule=Host(`homepage.${DOMAIN}`)"
@@ -32,6 +34,20 @@ services:
max-size: "10m" max-size: "10m"
max-file: "3" max-file: "3"
socket-proxy:
image: tecnativa/docker-socket-proxy
container_name: socket-proxy
restart: unless-stopped
networks:
- socket_proxy
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
environment:
- CONTAINERS=1 # Allow listing containers
- POST=0 # Disallow POST requests (write access)
networks: networks:
proxy: proxy:
external: true external: true
socket_proxy:
internal: true