first commit
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
version: "3.8"
|
||||
|
||||
# Use default bridge network (no custom network needed)
|
||||
|
||||
services:
|
||||
redis:
|
||||
image: redis:7-alpine
|
||||
container_name: shared-redis
|
||||
ports:
|
||||
- "6379:6379" # Fixed port mapping
|
||||
command: redis-server --appendonly yes --maxmemory 256mb --maxmemory-policy allkeys-lru
|
||||
volumes:
|
||||
- redis_data:/data
|
||||
# networks:
|
||||
# - default # Use default network
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: ["CMD", "redis-cli", "ping"]
|
||||
interval: 10s
|
||||
timeout: 3s
|
||||
retries: 3
|
||||
|
||||
volumes:
|
||||
redis_data:
|
||||
Reference in New Issue
Block a user