Skip to content

Commit 460430f

Browse files
committed
refactor(docker/community): restore redis healthcheck
if a container is a dependency for an other container it should not be removed. according to the documentation the compose argument none could be applied: https://docs.docker.com/reference/dockerfile/#healthcheck
1 parent c09266d commit 460430f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docker/community/docker-compose.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ services:
99
options:
1010
max-size: '50m'
1111
max-file: '5'
12+
healthcheck:
13+
test: ['CMD', 'redis-cli', 'ping']
14+
interval: 30s
15+
timeout: 5s
16+
retries: 3
17+
start_period: 10s
1218

1319
mongodb:
1420
image: mongo:8.0.3

0 commit comments

Comments
 (0)