Skip to content

Instantly share code, notes, and snippets.

@HRKings
Last active September 12, 2023 20:05
Show Gist options
  • Save HRKings/322a5bebed27df70a4115e544c8b9c05 to your computer and use it in GitHub Desktop.
Save HRKings/322a5bebed27df70a4115e544c8b9c05 to your computer and use it in GitHub Desktop.
Redis Template Docker Compose File
version: "3.9"
services:
redis:
container_name: redis
image: redis:alpine
environment:
REDIS_PASSWORD: ${REDIS_PASSWORD:-password}
command: /bin/sh -c 'redis-server --appendonly yes --requirepass "$${REDIS_PASSWORD}"'
volumes:
- ./redis:/data
ports:
- "6379:6379"
restart: unless-stopped
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment