Skip to content

Commit 14f27df

Browse files
committed
chore: fix default password behavior with official redis image vs bitnami
1 parent 9093b34 commit 14f27df

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/workflows/ci-instrumentation-with-services.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,9 @@ jobs:
215215
image: redis:6.2
216216
ports:
217217
- 6379:6379
218+
command: ["redis-server", "--appendonly", "yes", "--requirepass", "${REDIS_PASSWORD}"]
218219
options: >-
219-
--health-cmd "redis-cli ping"
220+
--health-cmd "sh -c 'redis-cli -a \"$REDIS_PASSWORD\" ping | grep PONG'"
220221
--health-interval 10s
221222
--health-timeout 5s
222223
--health-retries 5

docker-compose.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,12 @@ services:
205205
- redis_data:/data
206206
ports:
207207
- "16379:6379"
208+
command: ["redis-server", "--appendonly", "yes", "--requirepass", "${REDIS_PASSWORD}"]
209+
options: >-
210+
--health-cmd "sh -c 'redis-cli -a \"$REDIS_PASSWORD\" ping | grep PONG'"
211+
--health-interval 10s
212+
--health-timeout 5s
213+
--health-retries 5
208214
209215
rabbitmq:
210216
image: rabbitmq:3.8-alpine

0 commit comments

Comments
 (0)