mirror of
https://github.com/openai/openai-cookbook
synced 2024-11-08 01:10:29 +00:00
22 lines
477 B
YAML
22 lines
477 B
YAML
version: '3.7'
|
|
services:
|
|
|
|
vector-db:
|
|
image: redis/redis-stack:latest
|
|
ports:
|
|
- 6379:6379
|
|
- 8001:8001
|
|
environment:
|
|
- REDISEARCH_ARGS=CONCURRENT_WRITE_MODE
|
|
volumes:
|
|
- vector-db:/var/lib/redis
|
|
- ./redis.conf:/usr/local/etc/redis/redis.conf
|
|
healthcheck:
|
|
test: ["CMD", "redis-cli", "-h", "localhost", "-p", "6379", "ping"]
|
|
interval: 2s
|
|
timeout: 1m30s
|
|
retries: 5
|
|
start_period: 5s
|
|
|
|
volumes:
|
|
vector-db: |