-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (45 loc) · 1.11 KB
/
Copy pathdocker-compose.yml
File metadata and controls
49 lines (45 loc) · 1.11 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
version: "3.8"
services:
# Redis service for data storage and caching
redis:
image: redis:7-alpine
container_name: generative-agent-redis
ports:
- "6379:6379"
volumes:
- redis_data:/data
- ./docker/redis.conf:/usr/local/etc/redis/redis.conf:ro
command: redis-server /usr/local/etc/redis/redis.conf
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
restart: unless-stopped
networks:
- generative-agent-network
# Optional: Redis Commander for Redis GUI management
redis-commander:
image: rediscommander/redis-commander:latest
container_name: generative-agent-redis-commander
ports:
- "8081:8081"
environment:
- REDIS_HOSTS=local:redis:6379
- HTTP_USER=admin
- HTTP_PASSWORD=admin
depends_on:
redis:
condition: service_healthy
restart: unless-stopped
networks:
- generative-agent-network
profiles:
- tools
volumes:
redis_data:
driver: local
networks:
generative-agent-network:
driver: bridge