Adding the new rewrite

This commit is contained in:
Ketan Patel committed 2026-04-04 13:53:57 -04:00
1 parent 4aca9f08d1
commit 9b48b01d1d
62 files changed
+4510 -1406

No files matched your search

+16 -3
View File
@@ -5,18 +5,31 @@ services:
container_name: apcups-dashboard
ports:
- "10280:8000"
env_file: .env
environment:
- REDIS_URL=redis://redis:6379/0
depends_on:
- redis
redis:
condition: service_healthy
restart: always
healthcheck:
test: ["CMD", "curl", "-fsS", "http://localhost:8000/healthz"]
interval: 30s
timeout: 5s
retries: 3
start_period: 15s
redis:
image: redis:7-alpine
container_name: redis
restart: always
# Enable persistence so UPS configuration stored in Redis survives restarts.
# Using both RDB snapshots (default schedule) and AOF for durability.
# Uncomment to require password (must also set REDIS_URL=redis://:PASS@redis:6379/0):
# command: ["redis-server", "--appendonly", "yes", "--appendfsync", "everysec", "--requirepass", "${REDIS_PASSWORD}"]
command: ["redis-server", "--appendonly", "yes", "--appendfsync", "everysec"]
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 3s
retries: 5
volumes:
- redis-data:/data
volumes: