File tree Expand file tree Collapse file tree 2 files changed +7
-27
lines changed Expand file tree Collapse file tree 2 files changed +7
-27
lines changed Original file line number Diff line number Diff line change 28
28
--health-retries 5
29
29
ports :
30
30
- 5432:5432
31
- redis-sentinel :
32
- image : bitnami/redis-sentinel:7.4-debian-12
33
- ports :
34
- - 26379:26379
35
- env :
36
- REDIS_MASTER_HOST : redis
37
- REDIS_MASTER_SET : myprimary
38
- REDIS_SENTINEL_QUORUM : 1
39
- options : >-
40
- --health-cmd "redis-cli -p 26379 ping"
41
- --health-start-period 5s
42
- --health-interval 10s
43
- --health-timeout 5s
44
- --health-retries 5
45
-
46
-
47
- env :
48
- # The hostname used to communicate with the Redis service container
49
- REDIS_HOST : redis
50
- REDIS_SENTINEL_HOST : 127.0.0.1
51
- # The default Redis port
52
- REDIS_PORT : 6379
53
- REDIS_SENTINEL_PORT : 26379
54
- # MySQL
55
- DB_DATABASE : test
56
- DB_USER : root
57
- DB_PASSWORD : root
58
31
59
32
steps :
60
33
- name : Checkout code
86
59
with :
87
60
redis-version : ${{ matrix.redis-version }}
88
61
62
+ - name : Start Redis Sentinel
63
+ run : docker run -d --name redis-sentinel --link redis:redis \
64
+ -v $PWD/sentinel.conf:/sentinel.conf \
65
+ redis:${{ matrix.redis-version }} \
66
+ redis-server sentinel.conf --sentinel
67
+
89
68
- name : Execute tests (PDO with Sqlite)
90
69
run : vendor/bin/phpunit
91
70
Original file line number Diff line number Diff line change 1
1
bind 0.0.0.0
2
+ port 26379
2
3
sentinel monitor myprimary redis 6379 2
3
4
sentinel resolve-hostnames yes
4
5
sentinel down-after-milliseconds myprimary 10000
You can’t perform that action at this time.
0 commit comments