Adding the Initial WIP
This commit is contained in:
commit
326479c338
25 files changed
+6629
No files matched your search
@@ -0,0 +1,23 @@
|
||||
version: '3.9'
|
||||
services:
|
||||
web:
|
||||
build: .
|
||||
container_name: apcups-dashboard
|
||||
ports:
|
||||
- "8000:8000"
|
||||
environment:
|
||||
- REDIS_URL=redis://redis:6379/0
|
||||
depends_on:
|
||||
- redis
|
||||
redis:
|
||||
image: redis:7-alpine
|
||||
container_name: redis
|
||||
ports:
|
||||
- "6379:6379"
|
||||
# Enable persistence so UPS configuration stored in Redis survives restarts.
|
||||
# Using both RDB snapshots (default schedule) and AOF for durability.
|
||||
command: ["redis-server", "--appendonly", "yes", "--appendfsync", "everysec"]
|
||||
volumes:
|
||||
- redis-data:/data
|
||||
volumes:
|
||||
redis-data:
|
||||
Reference in new issue
Block a user