hexabot/docker/docker-compose.redis.yml

30 lines
478 B
YAML
Raw Permalink Normal View History

2024-11-15 16:39:12 +00:00
version: "3.8"
services:
api:
networks:
- cache-network
depends_on:
redis:
condition: service_healthy
redis:
container_name: redis
image: redis/redis-stack-server:7.2.0-v6
networks:
- cache-network
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 10s
retries: 5
start_period: 10s
volumes:
- redis_data:/data
volumes:
redis_data:
networks:
cache-network: