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

now services seem to respond
This commit is contained in:
2005 2024-06-01 18:30:19 +02:00
parent a90725ce7e
commit ac4171f888

View file

@ -1,5 +1,5 @@
version: "3" version: "3"
# https://scribe.rip/@kadampritesh46/microservices-part-4-dockerization-and-beyond-55693a2419e7
networks: networks:
learningpulse: {} learningpulse: {}
services: services:
@ -9,7 +9,14 @@ services:
hostname: eureka-server hostname: eureka-server
networks: networks:
- learningpulse - learningpulse
environment:
- spring.application.name=eureka-server
- eureka.client.registerWithEureka=false
- eureka.client.fetchRegistry=false
- eureka.server.waitTimeInMsWhenSyncEmpty=0
# to test
# curl http://admin:admin@localhost:8181/api/v1/dummy/test -v;
dummy: dummy:
image: git.4o1x5.dev/learningpulse/server/dummy:dev image: git.4o1x5.dev/learningpulse/server/dummy:dev
restart: always restart: always
@ -18,8 +25,8 @@ services:
networks: networks:
- learningpulse - learningpulse
environment: environment:
EUREKA_CLIENT_SERVICEURL_DEFAULTZONE: http://eureka-server:8761/eureka - eureka.client.service-url.defaultZone=http://eureka-server:8761/eureka
- eureka.instance.preferIpAddress=true
gateway: gateway:
image: git.4o1x5.dev/learningpulse/server/gateway:dev image: git.4o1x5.dev/learningpulse/server/gateway:dev
restart: always restart: always
@ -31,34 +38,35 @@ services:
networks: networks:
- learningpulse - learningpulse
environment: environment:
EUREKA_CLIENT_SERVICEURL_DEFAULTZONE: http://eureka-server:8761/eureka - eureka.instance.preferIpAddress=true
- eureka.client.service-url.defaultZone=http://eureka-server:8761/eureka
#
# TODO once implemented into gateway
# keycloak:
# container_name: keycloak
# hostname: keycloak
# image: quay.io/keycloak/keycloak:latest
# command: ["start-dev", "--import-realm"]
# ports:
# - "3212:8080"
# volumes:
# - ./realms:/opt/keycloak/data/import
# environment:
# KC_DB: ${DB_NAME}
# KC_DB_URL: ${DB_URL}
# KC_DB_USERNAME: ${DB_USERNAME}
# KC_DB_PASSWORD: ${DB_PASSWORD}
# KC_DB_SCHEMA: ${DB_SCHEMA}
# KEYCLOAK_ADMIN: admin
# KEYCLOAK_ADMIN_PASSWORD: admin
# KC_HTTP_ENABLED: true
# TODO once implemented into gateway # TODO once implemented into service(s)
# keycloak: # database:
# container_name: keycloak # image: postgres
# hostname: keycloak # restart: always
# image: quay.io/keycloak/keycloak:latest # hostname: database
# command: ["start-dev", "--import-realm"] # environment:
# ports: # POSTGRES_USER: ${DABATASE_USER}
# - "3212:8080" # POSTGRES_PASSWORD: ${DATABASE_PASSWORD}
# volumes: # POSTGRES_DB: ${DATABASE_NAME}
# - ./realms:/opt/keycloak/data/import
# environment:
# KC_DB: ${DB_NAME}
# KC_DB_URL: ${DB_URL}
# KC_DB_USERNAME: ${DB_USERNAME}
# KC_DB_PASSWORD: ${DB_PASSWORD}
# KC_DB_SCHEMA: ${DB_SCHEMA}
# KEYCLOAK_ADMIN: admin
# KEYCLOAK_ADMIN_PASSWORD: admin
# KC_HTTP_ENABLED: true
# TODO once implemented into service(s)
# database:
# image: postgres
# restart: always
# hostname: database
# environment:
# POSTGRES_USER: ${DABATASE_USER}
# POSTGRES_PASSWORD: ${DATABASE_PASSWORD}
# POSTGRES_DB: ${DATABASE_NAME}