Skip to content

Commit

Permalink
BREAKING: updating all docker images
Browse files Browse the repository at this point in the history
  • Loading branch information
philipdaquin committed Oct 10, 2023
1 parent e629c2e commit 0e396df
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 17 deletions.
13 changes: 7 additions & 6 deletions api_gateway/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@
<artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
<version>4.0.3</version>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-gateway</artifactId>
<version>4.0.3</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
Expand Down Expand Up @@ -54,14 +59,10 @@
<groupId>io.projectreactor</groupId>
<artifactId>reactor-core-micrometer</artifactId>
</dependency>
<dependency>
<!-- <dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-redis-reactive</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-gateway</artifactId>
</dependency>
</dependency> -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
Expand Down
3 changes: 2 additions & 1 deletion api_gateway/src/main/resources/application-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,8 @@ eureka:
healthcheck:
enabled: true
serviceUrl:
defaultZone: http://localhost:8761/eureka/
# defaultZone: http://localhost:8761/eureka/
defaultZone: http://discovery-service:8761/eureka/

management:
health:
Expand Down
21 changes: 11 additions & 10 deletions api_gateway/src/main/resources/application-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,22 @@ spring:

gateway:
default-filters:
- SaveSession
- TokenRelay
- name: RequestRateLimiter
args:
redis-rate-limiter:
replenishRate: 10
burstCapacity: 20
requestedTokens: 1
# - SaveSession
# - TokenRelay
# - name: RequestRateLimiter
# args:
# redis-rate-limiter:
# replenishRate: 10
# burstCapacity: 20
# requestedTokens: 1
httpclient:
ssl:
use-insecure-trust-manager: true
discovery:
locator:

enabled: true


routes:
# Id - Every route requires a unique identifer
Expand Down Expand Up @@ -178,7 +180,6 @@ management:

eureka:
instance:
hostname: localhost
prefer-ip-address: true
client:
enabled: true
Expand All @@ -187,7 +188,7 @@ eureka:
healthcheck:
enabled: true
serviceUrl:
defaultZone: http://discovery-service:8761/eureka/
defaultZone: ${eureka_url:http://discovery-service:8761/eureka/}

logging:
pattern:
Expand Down

0 comments on commit 0e396df

Please sign in to comment.