@@ -10,14 +10,15 @@ services:
1010 - SERVER_PORT=8761
1111 - EUREKA_CLIENT_SERVICEURL_DEFAULTZONE=http://localhost:8761/eureka/
1212 - ORACLE_EXTERNAL_HOSTNAME=${ORACLE_EXTERNAL_HOSTNAME}
13+ - RENDER_EXTERNAL_HOSTNAME=disabled
1314 - SPRING_CLOUD_SERVICE-REGISTRY_AUTO-REGISTRATION_ENABLED=false
1415 restart : unless-stopped
1516 healthcheck :
16- test : ["CMD", "curl", "-f", " http://localhost:8761/actuator/health || exit 0"]
17+ test : ["CMD-SHELL ", "wget -q --spider http://localhost:8761/actuator/health || exit 0"]
1718 interval : 30s
1819 timeout : 10s
19- retries : 3
20- start_period : 40s
20+ retries : 5
21+ start_period : 60s
2122
2223 # API Gateway depends on healthy Eureka server
2324 api-gateway :
@@ -29,18 +30,13 @@ services:
2930 - SPRING_PROFILES_ACTIVE=production
3031 - EUREKA_CLIENT_SERVICEURL_DEFAULTZONE=http://eureka-server:8761/eureka/
3132 - ORACLE_EXTERNAL_HOSTNAME=${ORACLE_EXTERNAL_HOSTNAME}
33+ - RENDER_EXTERNAL_HOSTNAME=disabled
3234 - CORS_ALLOWED_ORIGINS=https://musicanalytics.netlify.app,https://music-analytics.abenezeranglo.uk
3335 - SPRING_CLOUD_SERVICE-REGISTRY_AUTO-REGISTRATION_ENABLED=false
3436 depends_on :
3537 eureka-server :
3638 condition : service_healthy
3739 restart : unless-stopped
38- healthcheck :
39- test : ["CMD", "curl", "-f", "http://localhost:8080/actuator/health || exit 0"]
40- interval : 30s
41- timeout : 10s
42- retries : 3
43- start_period : 40s
4440
4541 # Microservices depend on healthy Eureka server
4642 recommendation-service :
@@ -51,6 +47,7 @@ services:
5147 environment :
5248 - SPRING_PROFILES_ACTIVE=production
5349 - EUREKA_CLIENT_SERVICEURL_DEFAULTZONE=http://eureka-server:8761/eureka/
50+ - RENDER_EXTERNAL_HOSTNAME=disabled
5451 - SPRING_CLOUD_SERVICE-REGISTRY_AUTO-REGISTRATION_ENABLED=false
5552 depends_on :
5653 eureka-server :
@@ -59,11 +56,11 @@ services:
5956 - recommendation-data:/data
6057 restart : unless-stopped
6158 healthcheck :
62- test : ["CMD", "curl ", "-f ", "http://localhost:8082/actuator/health || exit 0"]
59+ test : ["CMD", "wget ", "-q", "--spider ", "http://localhost:8082/actuator/health || exit 0"]
6360 interval : 30s
6461 timeout : 10s
6562 retries : 3
66- start_period : 40s
63+ start_period : 60s
6764
6865 statistics-service :
6966 build :
@@ -73,6 +70,7 @@ services:
7370 environment :
7471 - SPRING_PROFILES_ACTIVE=production
7572 - EUREKA_CLIENT_SERVICEURL_DEFAULTZONE=http://eureka-server:8761/eureka/
73+ - RENDER_EXTERNAL_HOSTNAME=disabled
7674 - SPRING_CLOUD_SERVICE-REGISTRY_AUTO-REGISTRATION_ENABLED=false
7775 depends_on :
7876 eureka-server :
@@ -81,11 +79,11 @@ services:
8179 - statistics-data:/data
8280 restart : unless-stopped
8381 healthcheck :
84- test : ["CMD", "curl ", "-f ", "http://localhost:8083/actuator/health || exit 0"]
82+ test : ["CMD", "wget ", "-q", "--spider ", "http://localhost:8083/actuator/health || exit 0"]
8583 interval : 30s
8684 timeout : 10s
8785 retries : 3
88- start_period : 40s
86+ start_period : 60s
8987
9088 user-tracking-service :
9189 build :
@@ -95,6 +93,7 @@ services:
9593 environment :
9694 - SPRING_PROFILES_ACTIVE=production
9795 - EUREKA_CLIENT_SERVICEURL_DEFAULTZONE=http://eureka-server:8761/eureka/
96+ - RENDER_EXTERNAL_HOSTNAME=disabled
9897 - SPRING_CLOUD_SERVICE-REGISTRY_AUTO-REGISTRATION_ENABLED=false
9998 depends_on :
10099 eureka-server :
@@ -103,11 +102,11 @@ services:
103102 - user-tracking-data:/data
104103 restart : unless-stopped
105104 healthcheck :
106- test : ["CMD", "curl ", "-f ", "http://localhost:8084/actuator/health || exit 0"]
105+ test : ["CMD", "wget ", "-q", "--spider ", "http://localhost:8084/actuator/health || exit 0"]
107106 interval : 30s
108107 timeout : 10s
109108 retries : 3
110- start_period : 40s
109+ start_period : 60s
111110
112111volumes :
113112 recommendation-data :
0 commit comments