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: eureka:
image: git.4o1x5.dev/learningpulse/server/eureka:dev image: git.4o1x5.dev/learningpulse/server/eureka:dev
restart: always restart: always
hostname: eureka-server
networks: networks:
- learningpulse - learningpulse
dummy: dummy:
image: git.4o1x5.dev/learningpulse/server/dummy:dev image: git.4o1x5.dev/learningpulse/server/dummy:dev
restart: always restart: always
depends_on:
- eureka
networks: networks:
- learningpulse - learningpulse
environment:
EUREKA_CLIENT_SERVICEURL_DEFAULTZONE: http://eureka-server:8761/eureka
gateway: gateway:
image: git.4o1x5.dev/learningpulse/server/gateway:dev image: git.4o1x5.dev/learningpulse/server/gateway:dev
restart: always restart: always
depends_on:
- eureka
- dummy
ports: ports:
- 8181:8181 - 8181:8181
networks: networks:
- learningpulse - learningpulse
environment:
EUREKA_CLIENT_SERVICEURL_DEFAULTZONE: http://eureka-server:8761/eureka
# TODO once implemented into gateway # TODO once implemented into gateway
# keycloak: # keycloak:

View file

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