File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,6 +10,11 @@ services:
1010 - RABBITMQ_DEFAULT_USER=user
1111 - RABBITMQ_DEFAULT_PASS=password
1212 - RABBITMQ_ERLANG_COOKIE='d53f219cd9376f8f440aaf9889f315ab'
13+ healthcheck :
14+ test : rabbitmq-diagnostics check_port_connectivity
15+ interval : 1s
16+ timeout : 3s
17+ retries : 30
1318
1419 node :
1520 image : node:20
Original file line number Diff line number Diff line change @@ -11,6 +11,11 @@ services:
1111 - " RABBITMQ_ERLANG_COOKIE=${RABBITMQ_ERLANG_COOKIE}"
1212 volumes :
1313 - " .docker/data/rabbitmq:/var/lib/rabbitmq/mnesia/"
14+ healthcheck :
15+ test : rabbitmq-diagnostics check_port_connectivity
16+ interval : 1s
17+ timeout : 3s
18+ retries : 30
1419
1520 supervisor :
1621 image : itkdev/supervisor-php8.4:alpine
@@ -28,8 +33,10 @@ services:
2833 volumes :
2934 - .:/app
3035 depends_on :
31- - rabbit
36+ rabbit :
37+ condition : service_healthy
3238
3339 phpfpm :
3440 depends_on :
35- - rabbit
41+ rabbit :
42+ condition : service_healthy
You can’t perform that action at this time.
0 commit comments