Created
August 15, 2016 16:14
-
-
Save lauripiisang/e9f48419cf923bc8e48b52368a76a7ea to your computer and use it in GitHub Desktop.
Basic redis 3.2 docker-compose setup
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: "2" | |
services: | |
# To connect manually over cli: | |
# docker-compose run redis redis-cli -s /tmp/redis/myredis.sock | |
redis: | |
image: redis:3.2 | |
hostname: my-redis | |
container_name: my-redis | |
command: redis-server /usr/local/etc/redis/redis.conf --appendonly yes | |
volumes: | |
- ./data:/data | |
- /tmp/redis:/tmp/redis | |
- ./config/redis.conf:/usr/local/etc/redis/redis.conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment