Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ggivo/ce80b12ab75b40668010eb335103dacc to your computer and use it in GitHub Desktop.
Save ggivo/ce80b12ab75b40668010eb335103dacc to your computer and use it in GitHub Desktop.
services:
cache:
sysctls:
- net.ipv6.conf.all.disable_ipv6=1
image: redis:latest
ports:
- '6380:6380'
- '16380:16380'
command: redis-server --bind 0.0.0.0 --cluster-enabled yes --protected-mode no --save 20 1 --loglevel warning --cluster-announce-ip 192.168.86.43 --port 6380 --cluster-announce-port 6380
cache2:
sysctls:
- net.ipv6.conf.all.disable_ipv6=1
image: redis:latest
ports:
- '6381:6381'
- '16381:16381'
command: redis-server --bind 0.0.0.0 --cluster-enabled yes --protected-mode no --save 20 1 --loglevel warning --cluster-announce-ip 192.168.86.43 --port 6381 --cluster-announce-port 6381
cache3:
sysctls:
- net.ipv6.conf.all.disable_ipv6=1
image: redis:latest
ports:
- '6382:6382'
- '16382:16382'
command: redis-server --bind 0.0.0.0 --cluster-enabled yes --protected-mode no --save 20 1 --loglevel warning --cluster-announce-ip 192.168.86.43 --port 6382 --cluster-announce-port 6382
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment