-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
35 lines (32 loc) · 842 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
35 lines (32 loc) · 842 Bytes
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
# Naqdi V2 — Docker Services
# Redis for event bus (pub/sub) and BullMQ job queues
# PostgreSQL is already installed locally on the host
services:
redis:
image: redis:7-alpine
container_name: naqdi-redis
ports:
- "6379:6379"
volumes:
- redis_data:/data
command: redis-server --appendonly yes --maxmemory 256mb --maxmemory-policy allkeys-lru
restart: unless-stopped
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
redis-commander:
image: rediscommander/redis-commander:latest
container_name: naqdi-redis-ui
environment:
- REDIS_HOSTS=local:redis:6379
ports:
- "8081:8081"
depends_on:
redis:
condition: service_healthy
restart: unless-stopped
volumes:
redis_data:
driver: local