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
61
# Docker Compose for local Redis Enterprise testing
#
# Usage:
# docker compose up -d # Start Redis Enterprise
# docker compose up init # Initialize cluster (run once after first start)
# docker compose down -v # Stop and remove
#
# Environment variables (optional):
# REDIS_ENTERPRISE_IMAGE - Docker image (default: redislabs/redis:latest)
# REDIS_ENTERPRISE_PLATFORM - Platform (default: linux/amd64, use linux/arm64 for Apple Silicon)
#
# For Apple Silicon Macs, use:
# REDIS_ENTERPRISE_IMAGE=kurtfm/rs-arm:latest REDIS_ENTERPRISE_PLATFORM=linux/arm64 docker compose up -d
#
# After initialization:
# API: https://localhost:9443 (admin@redis.local / Redis123!)
# Web UI: https://localhost:8443
# Database: localhost:12000
services:
redis-enterprise:
image: ${REDIS_ENTERPRISE_IMAGE:-redislabs/redis:latest}
platform: ${REDIS_ENTERPRISE_PLATFORM:-linux/amd64}
container_name: redis-enterprise
tty: true
cap_add:
- ALL
ports:
- "12000:12000" # Default database port
- "9443:9443" # REST API
- "8443:8443" # Admin UI
healthcheck:
test:
interval: 5s
timeout: 3s
retries: 5
start_period: 10s
init:
image: ghcr.io/redis-developer/redisctl:latest
container_name: redis-enterprise-init
depends_on:
redis-enterprise:
condition: service_healthy
environment:
REDIS_ENTERPRISE_URL: "https://redis-enterprise:9443"
REDIS_ENTERPRISE_INSECURE: "true"
command:
profiles:
- init