fix redis ci yaml (#2269)

This commit is contained in:
John Guo 2022-11-05 10:23:52 +08:00 committed by GitHub
parent 60d8283971
commit 033ba588c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,7 +3,7 @@ version: "2"
services: services:
redis-master: redis-master:
container_name: redis-master container_name: redis-master
image: "loads/redis:7.0" image: "loads/redis:7.0-sentinel"
environment: environment:
- REDIS_REPLICATION_MODE=master - REDIS_REPLICATION_MODE=master
- REDIS_PASSWORD=111111 - REDIS_PASSWORD=111111
@ -12,7 +12,7 @@ services:
redis-slave1: redis-slave1:
container_name: redis-slave1 container_name: redis-slave1
image: "loads/redis:7.0" image: "loads/redis:7.0-sentinel"
environment: environment:
- REDIS_REPLICATION_MODE=slave - REDIS_REPLICATION_MODE=slave
- REDIS_MASTER_HOST=redis-master - REDIS_MASTER_HOST=redis-master
@ -27,7 +27,7 @@ services:
redis-slave2: redis-slave2:
container_name: redis-slave2 container_name: redis-slave2
image: "loads/redis:7.0" image: "loads/redis:7.0-sentinel"
environment: environment:
- REDIS_REPLICATION_MODE=slave - REDIS_REPLICATION_MODE=slave
- REDIS_MASTER_HOST=redis-master - REDIS_MASTER_HOST=redis-master