docker-compose:
All checks were successful
build and publish docker image / deploy / build (push) Successful in 1m39s

some changes? idk eureka has problems finding services
This commit is contained in:
2005 2024-06-01 18:19:55 +02:00
parent 81b6958bb2
commit a90725ce7e
3 changed files with 14 additions and 4 deletions

View file

@ -6,22 +6,32 @@ services:
eureka:
image: git.4o1x5.dev/learningpulse/server/eureka:dev
restart: always
hostname: eureka-server
networks:
- learningpulse
dummy:
image: git.4o1x5.dev/learningpulse/server/dummy:dev
restart: always
depends_on:
- eureka
networks:
- learningpulse
environment:
EUREKA_CLIENT_SERVICEURL_DEFAULTZONE: http://eureka-server:8761/eureka
gateway:
image: git.4o1x5.dev/learningpulse/server/gateway:dev
restart: always
depends_on:
- eureka
- dummy
ports:
- 8181:8181
networks:
- learningpulse
environment:
EUREKA_CLIENT_SERVICEURL_DEFAULTZONE: http://eureka-server:8761/eureka
# TODO once implemented into gateway
# keycloak:

View file

@ -32,6 +32,6 @@ management:
eureka:
client:
service-url:
defaultZone: http://localhost:8761/eureka
#defaultZone: http://localhost:8761/eureka
# Will only work when docker is used
# defaultZone: http://${app.eureka-server}:8761/eureka
defaultZone: http://eureka-server:8761/eureka

View file

@ -74,6 +74,6 @@ springdoc:
eureka:
client:
service-url:
defaultZone: http://localhost:8761/eureka
#defaultZone: http://localhost:8761/eureka
# Will only work when docker is used
# defaultZone: http://${app.eureka-server}:8761/eureka
defaultZone: http://eureka-server:8761/eureka