-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.realtime.yml
More file actions
60 lines (56 loc) · 1.49 KB
/
docker-compose.realtime.yml
File metadata and controls
60 lines (56 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
services:
redis:
image: redis:7-alpine
container_name: argus_redis
command: ["redis-server", "--appendonly", "yes", "--maxmemory-policy", "allkeys-lru"]
volumes:
- redis_data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 3s
retries: 5
networks:
- argus_network
restart: unless-stopped
# Optional web UI for Redis (enable with profile tools)
redis-commander:
image: rediscommander/redis-commander:latest
container_name: argus_redis_commander
environment:
- REDIS_HOSTS=local:redis:6379
ports:
- "127.0.0.1:8081:8081"
depends_on:
redis:
condition: service_healthy
networks:
- argus_network
restart: unless-stopped
profiles: ["tools"]
# Placeholder for real-time fanout worker (SSE/WebSocket publisher)
# Enable after adding ./workers/realtime-worker Dockerfile
realtime-worker:
build:
context: ./workers/realtime-worker
dockerfile: Dockerfile
container_name: argus_realtime_worker
environment:
- REDIS_URL=redis://redis:6379
- DATABASE_URL=postgresql://argus:argus_dev@postgis:5432/argus
- LOG_LEVEL=info
depends_on:
redis:
condition: service_healthy
postgis:
condition: service_healthy
networks:
- argus_network
restart: unless-stopped
profiles: ["workers"]
volumes:
redis_data:
networks:
argus_network:
external: true
name: argus_argus_network