Commit 5575d57b authored by Noel Alonso's avatar Noel Alonso
Browse files

Añade SPRING_PROFILES_ACTIVE en docker-compose

Y actualiza, añadiendo variables, etc
parent ba9723d1
Loading
Loading
Loading
Loading
+6 −7
Original line number Diff line number Diff line
@@ -2,14 +2,13 @@ version: '3.5'

services:
  ais:
    ports:
      - target: ${MICROSERVICE_PORT}
        published: ${MICROSERVICE_PORT}
        mode: host
    environment:
      SPRING_PROFILES_ACTIVE: pre
    deploy:
      resources:
        limits:
          cpus: '0.5'
          memory: 512M
          cpus: '${RESOURCES_LIMITS_CPUS:-0.5}'
          memory: ${RESOURCES_LIMITS_MEMORY:-512M}
        reservations:
          memory: 410M
          cpus: '${RESOURCES_RESERVATIONS_CPUS:-0.001}'
          memory: ${RESOURCES_RESERVATIONS_MEMORY:-410M}
+6 −6
Original line number Diff line number Diff line
@@ -2,13 +2,13 @@ version: '3.5'

services:
  ais:
    environment:
      SPRING_PROFILES_ACTIVE: prod
    deploy:
      placement:
        constraints:
          - node.role == worker
      resources:
        limits:
          cpus: '0.5'
          memory: 1G
          cpus: '${RESOURCES_LIMITS_CPUS:-0.5}'
          memory: ${RESOURCES_LIMITS_MEMORY:-1G}
        reservations:
          memory: 820M
          cpus: '${RESOURCES_RESERVATIONS_CPUS:-0.001}'
          memory: ${RESOURCES_RESERVATIONS_MEMORY:-820M}