Commit e1a39a14 authored by Noel Alonso's avatar Noel Alonso
Browse files

Especifica parámetros del microservicio

parent cd30d4c0
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
MICROSERVICE_NAME=template
MICROSERVICE_PORT=port
MICROSERVICE_NAME=security-manager
MICROSERVICE_PORT=8093
+1 −1
Original line number Diff line number Diff line
version: '3.5'

services:
  template:
  security-manager:
    ports:
      - target: ${MICROSERVICE_PORT}
        published: ${MICROSERVICE_PORT}
+1 −1
Original line number Diff line number Diff line
version: '3.5'

services:
  template:
  security-manager:
    deploy:
      mode: replicated
      replicas: 1
+6 −2
Original line number Diff line number Diff line
version: '3.5'

services:
  template:
  security-manager:
    image: ${IMAGE_NAME}:${IMAGE_TAG:-latest}
    environment:
      - MICROSERVICE_NAME
@@ -10,8 +10,9 @@ services:
      - JAVA_OPTS=-XX:MaxRAMFraction=2
    networks:
      - traefik-net
      - kafka-net
    healthcheck:
      test: wget --spider -S -t 3 http://localhost:${MICROSERVICE_PORT}/api/${MICROSERVICE_NAME}/actuator/health
      test: wget --spider -S -t 3 http://localhost:${MICROSERVICE_PORT}/api/security/actuator/health
      interval: 30s
      timeout: 10s
      retries: 3
@@ -20,3 +21,6 @@ services:
networks:
  traefik-net:
    external: true

  kafka-net:
    external: true