Created
March 6, 2018 06:12
-
-
Save raccoonyy/40f389f83b068d69d16f1852dc91ef89 to your computer and use it in GitHub Desktop.
redis settings for docker compose
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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