You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

91 line
2.4 KiB

  1. version: '2'
  2. services:
  3. redis-node-0:
  4. image: docker.io/bitnami/redis-cluster:6.2
  5. volumes:
  6. - redis-cluster_data-0:/bitnami/redis/data
  7. environment:
  8. - 'REDIS_PASSWORD=cap'
  9. - 'REDIS_NODES=redis-node-0 redis-node-1 redis-node-2 redis-node-3 redis-node-4 redis-node-5'
  10. redis-node-1:
  11. image: docker.io/bitnami/redis-cluster:6.2
  12. volumes:
  13. - redis-cluster_data-1:/bitnami/redis/data
  14. environment:
  15. - 'REDIS_PASSWORD=cap'
  16. - 'REDIS_NODES=redis-node-0 redis-node-1 redis-node-2 redis-node-3 redis-node-4 redis-node-5'
  17. redis-node-2:
  18. image: docker.io/bitnami/redis-cluster:6.2
  19. volumes:
  20. - redis-cluster_data-2:/bitnami/redis/data
  21. environment:
  22. - 'REDIS_PASSWORD=cap'
  23. - 'REDIS_NODES=redis-node-0 redis-node-1 redis-node-2 redis-node-3 redis-node-4 redis-node-5'
  24. redis-node-3:
  25. image: docker.io/bitnami/redis-cluster:6.2
  26. volumes:
  27. - redis-cluster_data-3:/bitnami/redis/data
  28. environment:
  29. - 'REDIS_PASSWORD=cap'
  30. - 'REDIS_NODES=redis-node-0 redis-node-1 redis-node-2 redis-node-3 redis-node-4 redis-node-5'
  31. redis-node-4:
  32. image: docker.io/bitnami/redis-cluster:6.2
  33. volumes:
  34. - redis-cluster_data-4:/bitnami/redis/data
  35. environment:
  36. - 'REDIS_PASSWORD=cap'
  37. - 'REDIS_NODES=redis-node-0 redis-node-1 redis-node-2 redis-node-3 redis-node-4 redis-node-5'
  38. redis-node-5:
  39. image: docker.io/bitnami/redis-cluster:6.2
  40. volumes:
  41. - redis-cluster_data-5:/bitnami/redis/data
  42. depends_on:
  43. - redis-node-0
  44. - redis-node-1
  45. - redis-node-2
  46. - redis-node-3
  47. - redis-node-4
  48. environment:
  49. - 'REDIS_PASSWORD=cap'
  50. - 'REDISCLI_AUTH=cap'
  51. - 'REDIS_CLUSTER_REPLICAS=1'
  52. - 'REDIS_NODES=redis-node-0 redis-node-1 redis-node-2 redis-node-3 redis-node-4 redis-node-5'
  53. - 'REDIS_CLUSTER_CREATOR=yes'
  54. db:
  55. image: "mcr.microsoft.com/mssql/server"
  56. ports:
  57. - 1433:1433
  58. environment:
  59. SA_PASSWORD: "P@ssw0rd"
  60. ACCEPT_EULA: "Y"
  61. redis-sample:
  62. build:
  63. context: ../..
  64. dockerfile: samples/Samples.Redis.SqlServer/Dockerfile
  65. ports:
  66. - 5000:80
  67. depends_on:
  68. - db
  69. - redis-node-5
  70. volumes:
  71. redis-cluster_data-0:
  72. driver: local
  73. redis-cluster_data-1:
  74. driver: local
  75. redis-cluster_data-2:
  76. driver: local
  77. redis-cluster_data-3:
  78. driver: local
  79. redis-cluster_data-4:
  80. driver: local
  81. redis-cluster_data-5:
  82. driver: local