mirror of
https://github.com/nickyeoman/docker-compose-cookbooks.git
synced 2026-09-03 18:36:22 +00:00
- VOL_PATH always defaults to /data; vscode/opencode VOL_PROJECTS nests it - TZ defaults to America/Vancouver (was UTC in etherpad, ntfy, redis) - compose section order fixed (volumes before environment, command after networks) - all default secrets are the literal ChangeThisPassword (grep-friendly, users must change them); removed a real key from ollama sample.env - sample.env synced with compose: missing vars added with defaults, dead vars removed - invoiceninja_dev/openarchiver_dev: app services had no environment block, wired all sample.env vars through so the stacks actually work - opencode: sample.env OLLAMA_HOST renamed to OLLAMA_HOST_URL to match compose - TZ values unquoted consistently Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Redis
Overview
Redis is an open-source in-memory data structure store used as a database, cache, and message broker. It's highly popular for its performance and versatility.
Project Details
- Project Repository: https://github.com/redis/redis
- Container Image: Docker Hub
- Compose Example: Redis Docker Compose
- Documentation: Redis Docs
- Reverse Proxy Port:
6379
Getting Started
- Start the container:
docker compose up -d - Connect to Redis using:
redis-cli -h localhost -p 6379
Environment Variable Notes
REDIS_IMAGE– Redis Docker image to use (default:redis:alpine)REDIS_PORT– Redis port to expose (default:6379)TZ– Timezone for container (default:UTC)
Volume Notes
/data– Persistent Redis data directory ( stores Redis data on disk via save configuration)
Network Notes
Requires proxy network
Docker Run
docker run -d \
--name redis \
-e REDIS_IMAGE=redis:alpine \
-e REDIS_PORT=6379 \
-e TZ=UTC \
-v ${VOL_PATH:-/data}/redis:/data \
-p 6379:6379 \
redis:alpine
Additional Notes / Gotchas
- Make sure to configure persistence in your Redis setup using the
saveconfiguration - Use
docker compose exec redis redis-clito access the running container - Remember to set a strong
redis-clipassword if using Redis in production
Dockhand Stack, Deploy from Git
Cookbooks Repository stackname: redis Compose file path: redis_dev/compose.yaml Additional env file (optional): redis_dev/sample.env
Then "Load" redis_dev/sample.env into the Environmental variables in dockhand
Create the Stack