Skip to content

Instantly share code, notes, and snippets.

@mhkoca
Last active April 14, 2022 13:55
Show Gist options
  • Save mhkoca/b85ad8dba6a6f36d436e590ee4fb34c5 to your computer and use it in GitHub Desktop.
Save mhkoca/b85ad8dba6a6f36d436e590ee4fb34c5 to your computer and use it in GitHub Desktop.
version: '2.2.3'
services:
redis-master:
container_name: "redis-master"
image: redis
ports:
- "6379:6379"
command: "redis-server /etc/redis.conf"
volumes:
- "./data/master:/data/"
- "./master.conf:/etc/redis.conf"
redis-replica:
container_name: "redis-replica"
image: redis
ports:
- "6380:6379"
command: "redis-server /etc/redis.conf"
volumes:
- "./replica.conf:/etc/redis.conf"
depends_on:
- redis-master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment