-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (38 loc) · 914 Bytes
/
docker-compose.yml
File metadata and controls
41 lines (38 loc) · 914 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
36
37
38
39
40
41
services:
redis:
image: redis:7-alpine
container_name: nextjs-cache-redis
ports:
- "6379:6379"
command: redis-server --appendonly yes
volumes:
- redis-data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 5
valkey:
image: valkey/valkey:7-alpine
container_name: nextjs-cache-valkey
ports:
- "6380:6379"
command: valkey-server --appendonly yes
healthcheck:
test: ["CMD", "valkey-cli", "-p", "6379", "ping"]
interval: 5s
timeout: 3s
retries: 5
# Optional: Redis Commander for debugging
redis-commander:
image: rediscommander/redis-commander:latest
container_name: nextjs-cache-redis-commander
environment:
- REDIS_HOSTS=local:redis:6379
ports:
- "8081:8081"
depends_on:
- redis
volumes:
redis-data:
driver: local