Redis
Posted
Redis is an in-memory database that persists on disk.
# file: `docker-compose.yml`
services:
redis:
image: ${HONEYPI_IMAGE_REGISTRY_HOST:-docker.io}/redis:${HONEYPI_REDIS_VERSION:-latest}
container_name: redis
restart: unless-stopped
ports:
- ${HONEYPI_REDIS_PORT:-6379}:6379
volumes:
- ${HONEYPI_DATA}/redis/data:/data
environment:
- REDIS_HOST=${HONEYPI_REDIS_HOST:-localhost}
- REDIS_PORT=${HONEYPI_REDIS_PORT:-6379}