teable/dockers/cache-redis.yml
Pengap e8c5fe8720
feat: add docker compose support for minio (#375)
* feat: add docker compose support for minio

---------

Co-authored-by: pengap <penganpingprivte@gmail.com>
2024-02-26 18:57:57 +08:00

27 lines
664 B
YAML

version: '3.9'
services:
teable-cache:
image: redis:7.2.4
container_name: teable-cache
hostname: teable-cache
restart: always
ports:
- '6379:6379'
networks:
- teable-net
volumes:
- cache_data:/data:rw
# you may use a bind-mounted host directory instead,
# so that it is harder to accidentally remove the volume and lose all your data!
# - ./docker/cache/data:/data:rw
command: redis-server --appendonly yes --requirepass ${REDIS_PASSWORD}
healthcheck:
test: ['CMD', 'redis-cli', '--raw', 'incr', 'ping']
interval: 10s
timeout: 3s
retries: 3
volumes:
cache_data: