Skip to content

Instantly share code, notes, and snippets.

@raccoonyy
Created March 6, 2018 06:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save raccoonyy/40f389f83b068d69d16f1852dc91ef89 to your computer and use it in GitHub Desktop.
Save raccoonyy/40f389f83b068d69d16f1852dc91ef89 to your computer and use it in GitHub Desktop.
redis settings for docker compose
version: '3.3'
services:
redis:
image: library/redis
ports:
- "6379:6379"
command: [
"sh", "-c",
"exec redis-server --requirepass rediswithodk"
]
healthcheck:
test: ["CMD", "redis-cli", "PING"]
interval: 1m30s
timeout: 5s
retries: 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment