feat: Homelable

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
Lino Silva
2026-05-04 10:33:18 +01:00
parent 9e4a1f7836
commit e1500967cf
3 changed files with 53 additions and 5 deletions
+14
View File
@@ -0,0 +1,14 @@
# Backend - server-side only (NEVER commit .env)
SQLITE_PATH=/data/homelab.db
# Set this to the URL(s) you use to access Homelable in your browser.
CORS_ORIGINS=["http://localhost:5173","http://localhost:3000","https://infra.lino.cooking"]
AUTH_USERNAME=admin
# Scanner — JSON array of CIDR ranges to scan
SCANNER_RANGES=["192.168.1.0/24", "10.0.0.0/21"]
# Status checker interval in seconds
STATUS_CHECKER_INTERVAL=60
LIVEVIEW_KEY=avlS0EW5im0ry9xF2gtJsDxhInef3iJbW7Ix396rOO0
@@ -0,0 +1,34 @@
services:
backend:
restart: unless-stopped
env_file:
- .env
environment:
# Override env_file: SQLite path must point inside the container volume
SQLITE_PATH: /app/data/homelab.db
volumes:
- /data/homelable:/app/data
networks:
- homelable
# Required for ping-based status checks
cap_add:
- NET_RAW
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/api/v1/health"]
interval: 10s
timeout: 5s
retries: 6
start_period: 15s
frontend:
restart: unless-stopped
ports:
- "8084:80"
depends_on:
- backend
networks:
- homelable
networks:
homelable:
driver: bridge