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
|
||||
env_file: .env
|
||||
networks:
|
||||
- anyame
|
||||
- anyame-shared
|
||||
|
||||
networks:
|
||||
anyame:
|
||||
driver: bridge
|
||||
anyame-shared:
|
||||
external: true
|
||||
|
6
pom.xml
6
pom.xml
@ -34,6 +34,7 @@
|
||||
<jsoup.version>1.20.1</jsoup.version>
|
||||
<spring-dotenv.version>4.0.0</spring-dotenv.version>
|
||||
<springdoc-openapi-starter.version>2.8.9</springdoc-openapi-starter.version>
|
||||
<spring-eureka-client.version>4.3.0</spring-eureka-client.version>
|
||||
</properties>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
@ -66,6 +67,11 @@
|
||||
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
|
||||
<version>${springdoc-openapi-starter.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
|
||||
<version>${spring-eureka-client.version}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
|
@ -1,2 +1,4 @@
|
||||
spring.application.name=anyame-kodik-extractor-backend
|
||||
kodik.token=${KODIK_TOKEN}
|
||||
eureka.client.serviceUrl.defaultZone: ${EUREKA_SCHEMA}://${EUREKA_HOST}/eureka/
|
||||
|
||||
|
Reference in New Issue
Block a user