Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 

107 linhas
2.7 KiB

  1. ---
  2. services:
  3. redis:
  4. image: ${CLIENT_LIBS_TEST_IMAGE:-redislabs/client-libs-test:8.2.1-pre}
  5. platform: linux/amd64
  6. container_name: redis-standalone
  7. environment:
  8. - TLS_ENABLED=yes
  9. - REDIS_CLUSTER=no
  10. - PORT=6379
  11. - TLS_PORT=6666
  12. command: ${REDIS_EXTRA_ARGS:---enable-debug-command yes --enable-module-command yes --tls-auth-clients optional --save ""}
  13. ports:
  14. - 6379:6379
  15. - 6666:6666 # TLS port
  16. volumes:
  17. - "./dockers/standalone:/redis/work"
  18. profiles:
  19. - standalone
  20. - sentinel
  21. - all-stack
  22. - all
  23. osscluster:
  24. image: ${CLIENT_LIBS_TEST_IMAGE:-redislabs/client-libs-test:8.2.1-pre}
  25. platform: linux/amd64
  26. container_name: redis-osscluster
  27. environment:
  28. - NODES=6
  29. - PORT=16600
  30. command: "--cluster-enabled yes"
  31. ports:
  32. - "16600-16605:16600-16605"
  33. volumes:
  34. - "./dockers/osscluster:/redis/work"
  35. profiles:
  36. - cluster
  37. - all-stack
  38. - all
  39. sentinel-cluster:
  40. image: ${CLIENT_LIBS_TEST_IMAGE:-redislabs/client-libs-test:8.2.1-pre}
  41. platform: linux/amd64
  42. container_name: redis-sentinel-cluster
  43. network_mode: "host"
  44. environment:
  45. - NODES=3
  46. - TLS_ENABLED=yes
  47. - REDIS_CLUSTER=no
  48. - PORT=9121
  49. command: ${REDIS_EXTRA_ARGS:---enable-debug-command yes --enable-module-command yes --tls-auth-clients optional --save ""}
  50. #ports:
  51. # - "9121-9123:9121-9123"
  52. volumes:
  53. - "./dockers/sentinel-cluster:/redis/work"
  54. profiles:
  55. - sentinel
  56. - all-stack
  57. - all
  58. sentinel:
  59. image: ${CLIENT_LIBS_TEST_IMAGE:-redislabs/client-libs-test:8.2.1-pre}
  60. platform: linux/amd64
  61. container_name: redis-sentinel
  62. depends_on:
  63. - sentinel-cluster
  64. environment:
  65. - NODES=3
  66. - REDIS_CLUSTER=no
  67. - PORT=26379
  68. command: ${REDIS_EXTRA_ARGS:---sentinel}
  69. network_mode: "host"
  70. #ports:
  71. # - 26379:26379
  72. # - 26380:26380
  73. # - 26381:26381
  74. volumes:
  75. - "./dockers/sentinel.conf:/redis/config-default/redis.conf"
  76. - "./dockers/sentinel:/redis/work"
  77. profiles:
  78. - sentinel
  79. - all-stack
  80. - all
  81. ring-cluster:
  82. image: ${CLIENT_LIBS_TEST_IMAGE:-redislabs/client-libs-test:8.2.1-pre}
  83. platform: linux/amd64
  84. container_name: redis-ring-cluster
  85. environment:
  86. - NODES=3
  87. - TLS_ENABLED=yes
  88. - REDIS_CLUSTER=no
  89. - PORT=6390
  90. command: ${REDIS_EXTRA_ARGS:---enable-debug-command yes --enable-module-command yes --tls-auth-clients optional --save ""}
  91. ports:
  92. - 6390:6390
  93. - 6391:6391
  94. - 6392:6392
  95. volumes:
  96. - "./dockers/ring:/redis/work"
  97. profiles:
  98. - ring
  99. - cluster
  100. - all-stack
  101. - all