use env vars for config

This commit is contained in:
2026-02-14 09:48:27 -03:00
parent 90058108a4
commit 8caa0ff46a
4 changed files with 14 additions and 12 deletions

View File

@@ -3,22 +3,20 @@
- Network:
- Pi-hole Primary:
icon: pi-hole.png
href: http://192.168.1.X/admin/
href: http://{{HOMEPAGE_VAR_PIHOLE_1_IP}}/admin/
widget:
type: pihole
url: http://192.168.1.X
key: ""
url: http://{{HOMEPAGE_VAR_PIHOLE_1_IP}}
key: "{{HOMEPAGE_VAR_PIHOLE_1_KEY}}"
- Pi-hole Secondary:
icon: pi-hole.png
href: http://192.168.1.Y/admin/
href: http://{{HOMEPAGE_VAR_PIHOLE_2_IP}}/admin/
widget:
type: pihole
url: http://192.168.1.Y
key: ""
url: http://{{HOMEPAGE_VAR_PIHOLE_2_IP}}
key: "{{HOMEPAGE_VAR_PIHOLE_2_KEY}}"
# Groups for auto-discovery
# Even though Homepage creates groups automatically, defining them here controls the order.
- Portfolio: []
- Web: []
- Monitoring: []

View File

@@ -5,7 +5,6 @@ background:
brightness: 50
theme: dark
color: slate
providers:

View File

@@ -13,3 +13,8 @@
format:
timeStyle: short
dateStyle: medium
- openweathermap:
apiKey: "{{HOMEPAGE_VAR_OPENWEATHERMAP_API_KEY}}"
location: "{{HOMEPAGE_VAR_OPENWEATHERMAP_LOCATION}}"
units: metric

View File

@@ -9,9 +9,9 @@ services:
volumes:
- ./config:/app/config
environment:
- PUID=1000
- PGID=1000
- TZ=America/Sao_Paulo
- PUID=${PUID}
- PGID=${PGID}
- TZ=${TZ}
- HOMEPAGE_ALLOWED_HOSTS=${HOMEPAGE_ALLOWED_HOSTS}
- DOCKER_HOST=tcp://socket-proxy:${SOCKET_PROXY_PORT}
labels: