Use eureka client with shared docker network
This commit is contained in:
3
.env.example
Normal file
3
.env.example
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
KODIK_TOKEN=YOUR_KODIK_TOKEN
|
||||||
|
EUREKA_SCHEMA=http
|
||||||
|
EUREKA_HOST=anyame-vue-bff:8080
|
@ -5,7 +5,8 @@ services:
|
|||||||
- 8081:8080
|
- 8081:8080
|
||||||
env_file: .env
|
env_file: .env
|
||||||
networks:
|
networks:
|
||||||
- anyame
|
- anyame-shared
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
anyame:
|
anyame-shared:
|
||||||
driver: bridge
|
external: true
|
||||||
|
6
pom.xml
6
pom.xml
@ -34,6 +34,7 @@
|
|||||||
<jsoup.version>1.20.1</jsoup.version>
|
<jsoup.version>1.20.1</jsoup.version>
|
||||||
<spring-dotenv.version>4.0.0</spring-dotenv.version>
|
<spring-dotenv.version>4.0.0</spring-dotenv.version>
|
||||||
<springdoc-openapi-starter.version>2.8.9</springdoc-openapi-starter.version>
|
<springdoc-openapi-starter.version>2.8.9</springdoc-openapi-starter.version>
|
||||||
|
<spring-eureka-client.version>4.3.0</spring-eureka-client.version>
|
||||||
</properties>
|
</properties>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
@ -66,6 +67,11 @@
|
|||||||
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
|
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
|
||||||
<version>${springdoc-openapi-starter.version}</version>
|
<version>${springdoc-openapi-starter.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.springframework.cloud</groupId>
|
||||||
|
<artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
|
||||||
|
<version>${spring-eureka-client.version}</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
@ -1,2 +1,4 @@
|
|||||||
spring.application.name=anyame-kodik-extractor-backend
|
spring.application.name=anyame-kodik-extractor-backend
|
||||||
kodik.token=${KODIK_TOKEN}
|
kodik.token=${KODIK_TOKEN}
|
||||||
|
eureka.client.serviceUrl.defaultZone: ${EUREKA_SCHEMA}://${EUREKA_HOST}/eureka/
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user