Add docker-compose healthchecks to services that support it
This commit is contained in:
@@ -22,6 +22,11 @@ services:
|
|||||||
- mongodb
|
- mongodb
|
||||||
networks:
|
networks:
|
||||||
- robot-shop
|
- robot-shop
|
||||||
|
healthcheck:
|
||||||
|
test: [ "CMD", "curl", "-H", "X-INSTANA-SYNTHETIC: 1", "-f", "http://localhost:8080/health" ]
|
||||||
|
interval: 1s
|
||||||
|
timeout: 10s
|
||||||
|
retries: 3
|
||||||
user:
|
user:
|
||||||
build:
|
build:
|
||||||
context: user
|
context: user
|
||||||
@@ -31,6 +36,11 @@ services:
|
|||||||
- redis
|
- redis
|
||||||
networks:
|
networks:
|
||||||
- robot-shop
|
- robot-shop
|
||||||
|
healthcheck:
|
||||||
|
test: [ "CMD", "curl", "-H", "X-INSTANA-SYNTHETIC: 1", "-f", "http://localhost:8080/health" ]
|
||||||
|
interval: 1s
|
||||||
|
timeout: 10s
|
||||||
|
retries: 3
|
||||||
cart:
|
cart:
|
||||||
build:
|
build:
|
||||||
context: cart
|
context: cart
|
||||||
@@ -39,6 +49,11 @@ services:
|
|||||||
- redis
|
- redis
|
||||||
networks:
|
networks:
|
||||||
- robot-shop
|
- robot-shop
|
||||||
|
healthcheck:
|
||||||
|
test: [ "CMD", "curl", "-H", "X-INSTANA-SYNTHETIC: 1", "-f", "http://localhost:8080/health" ]
|
||||||
|
interval: 1s
|
||||||
|
timeout: 10s
|
||||||
|
retries: 3
|
||||||
mysql:
|
mysql:
|
||||||
build:
|
build:
|
||||||
context: mysql
|
context: mysql
|
||||||
@@ -83,6 +98,11 @@ services:
|
|||||||
- rabbitmq
|
- rabbitmq
|
||||||
networks:
|
networks:
|
||||||
- robot-shop
|
- robot-shop
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD", "curl", "-H", "X-INSTANA-SYNTHETIC: 1", "-f", "http://localhost:8080/health"]
|
||||||
|
interval: 1s
|
||||||
|
timeout: 10s
|
||||||
|
retries: 3
|
||||||
# Uncomment to change payment gateway
|
# Uncomment to change payment gateway
|
||||||
#environment:
|
#environment:
|
||||||
#PAYMENT_GATEWAY: "https://www.worldpay.com"
|
#PAYMENT_GATEWAY: "https://www.worldpay.com"
|
||||||
@@ -107,9 +127,13 @@ services:
|
|||||||
- "8080:8080"
|
- "8080:8080"
|
||||||
networks:
|
networks:
|
||||||
- robot-shop
|
- robot-shop
|
||||||
#environment:
|
healthcheck:
|
||||||
# NGINX_INJECT_FAKE_IP: "1"
|
test: [ "CMD", "curl", "-H", "X-INSTANA-SYNTHETIC: 1", "-f", "http://localhost:8080/" ]
|
||||||
# Uncomment to enable Instana EUM
|
interval: 1s
|
||||||
|
timeout: 10s
|
||||||
|
retries: 3
|
||||||
|
# Uncomment to enable Instana EUM
|
||||||
|
# environment:
|
||||||
# INSTANA_EUM_KEY: <your eum key>
|
# INSTANA_EUM_KEY: <your eum key>
|
||||||
# INSTANA_EUM_REPORTING_URL: https://eum-us-west-2.instana.io
|
# INSTANA_EUM_REPORTING_URL: https://eum-us-west-2.instana.io
|
||||||
# INSTANA_EUM_REPORTING_URL: https://eum-eu-west-1.instana.io
|
# INSTANA_EUM_REPORTING_URL: https://eum-eu-west-1.instana.io
|
||||||
|
Reference in New Issue
Block a user