Commit 5d210629 authored by Noel Alonso's avatar Noel Alonso
Browse files

Actualiza etiquetas a traefik v2

Adapta config de despliegue
Actualiza versión en docker compose
parent 55a23879
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -5,3 +5,6 @@ UNIT_NAME=atlas
PORT=8080
SPRING_KAFKA_CLIENT_ID={{.Service.Name}}-{{.Task.Slot}}
JAVA_OPTS=-XX:MaxRAMFraction=2

TRAEFIK_ENTRYPOINT=http
TRAEFIK_SUBDOMAIN=atlas
+3 −6
Original line number Diff line number Diff line
version: '3.5'
version: '3.9'

services:
  atlas-commands:
    environment:
      SPRING_PROFILES_ACTIVE: pre
    deploy:
      placement:
        constraints:
          - node.hostname == ${ATLAS_COMMANDS_PLACEMENT_CONSTRAINTS_NODE_HOSTNAME:-hostname}
      resources:
        limits:
          cpus: '${ATLAS_COMMANDS_RESOURCES_LIMITS_CPUS:-0.5}'
@@ -21,6 +18,6 @@ volumes:
    name: atlas-commands-{{.Task.Slot}}-vol
    driver: local
    driver_opts:
      type: ${COMMANDS_VOL_TYPE:-nfs4}
      o: addr=${COMMANDS_VOL_ADDR:-127.0.0.1},${COMMANDS_VOL_OPTIONS:-rw,nolock,noatime,tcp,rsize=8192,wsize=8192,timeo=14}
      type: ${VOL_TYPE:-nfs4}
      o: addr=${VOL_ADDR:-127.0.0.1},${VOL_OPTS:-rw,nolock,noatime,tcp,rsize=8192,wsize=8192,timeo=14}
      device: :/atlas-commands-{{.Task.Slot}}-vol/
+4 −1
Original line number Diff line number Diff line
version: '3.5'
version: '3.9'

services:
  atlas-commands:
    environment:
      SPRING_PROFILES_ACTIVE: prod
    deploy:
      placement:
        constraints:
          - node.role == worker
      resources:
        limits:
          cpus: '${ATLAS_COMMANDS_RESOURCES_LIMITS_CPUS:-0.5}'
+5 −4
Original line number Diff line number Diff line
version: '3.5'
version: '3.9'

services:
  atlas-commands:
@@ -27,9 +27,10 @@ services:
      mode: replicated
      replicas: ${REPLICAS:-1}
      labels:
        traefik.frontend.rule: Host:${PUBLIC_HOSTNAME};PathPrefix:/api/${UNIT_NAME}/commands
        traefik.backend: ${UNIT_NAME}-commands
        traefik.port: '${PORT}'
        traefik.enable: 'true'
        traefik.http.routers.redmic-atlas-commands.entrypoints: ${TRAEFIK_ENTRYPOINT}
        traefik.http.routers.redmic-atlas-commands.rule: (Host(`${PUBLIC_HOSTNAME}`) || Host(`${TRAEFIK_SUBDOMAIN}.${PUBLIC_HOSTNAME}`)) && PathPrefix(`/api/${UNIT_NAME}/commands`)
        traefik.http.services.redmic-atlas-commands.loadbalancer.server.port: ${PORT}
      restart_policy:
        delay: ${ATLAS_COMMANDS_RESTART_DELAY:-15s}
      update_config:
+1 −1
Original line number Diff line number Diff line
version: '3.5'
version: '3.9'

services:
  atlas-view:
Loading