Skip to content

Commit f0f2e0b

Browse files
author
Alan Christie
committed
build: Add healthcheck to docker-compose rabbitmq
1 parent 5bd0770 commit f0f2e0b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

docker-compose.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ services:
2121
- type: bind
2222
source: ./rabbitmq-enabled-plugins
2323
target: /config
24+
healthcheck:
25+
test: rabbitmq-diagnostics -q ping
26+
interval: 30s
27+
timeout: 30s
28+
retries: 10
2429

2530
memcached:
2631
image: memcached:1.6.38-alpine3.21
@@ -49,6 +54,6 @@ services:
4954
- '8081:8081'
5055
depends_on:
5156
rabbitmq:
52-
condition: service_started
57+
condition: service_healthy
5358
memcached:
5459
condition: service_started

0 commit comments

Comments
 (0)