Skip to content

Commit

Permalink
perf($RabbitMQ): add RabbitMQ health check; set container dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnymillergh committed Mar 9, 2021
1 parent 9022f77 commit 660bf49
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ services:
environment:
RABBITMQ_DEFAULT_USER: ${MAF_RABBITMQ_USER}
RABBITMQ_DEFAULT_PASS: ${MAF_RABBITMQ_PASSWORD}
healthcheck:
test: rabbitmq-diagnostics -q ping
interval: 30s
timeout: 30s
retries: 3
networks:
muscle_and_fitness_network:

Expand Down Expand Up @@ -210,6 +215,8 @@ services:
condition: service_started
consul-service-registry:
condition: service_started
rabbitmq:
condition: service_healthy
ports:
- "8761:8761"
restart: always
Expand Down Expand Up @@ -271,6 +278,8 @@ services:
condition: service_started
consul-service-registry:
condition: service_started
rabbitmq:
condition: service_healthy
restart: always
volumes:
- "~/docker-file-mapping/${AUTH_CENTER_CONTAINER_NAME}:/logs"
Expand Down Expand Up @@ -299,6 +308,8 @@ services:
condition: service_started
consul-service-registry:
condition: service_started
rabbitmq:
condition: service_healthy
restart: always
volumes:
- "~/docker-file-mapping/${EXERCISE_MIS_CONTAINER_NAME}:/logs"
Expand Down Expand Up @@ -327,6 +338,8 @@ services:
condition: service_started
consul-service-registry:
condition: service_started
rabbitmq:
condition: service_healthy
restart: always
volumes:
- "~/docker-file-mapping/${MUSCLE_MIS_CONTAINER_NAME}:/logs"
Expand Down

0 comments on commit 660bf49

Please sign in to comment.