Commit 2dc1ad53 authored by Pedro Eduardo Trujillo's avatar Pedro Eduardo Trujillo
Browse files

Elimina restricción de nodo y actualiza detalles

En lugar de restringir nodo, se usa volumen NFSv4.

Revisa variables CI y aumenta reserva de memoria a nuevo mínimo.
parent bf043fbc
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -6,12 +6,8 @@ include:
stages:
  - deploy

variables:
  PROJECT_PARENT_NAME: gateway

.deploy:
  variables:
    STACK: ${PROJECT_PARENT_NAME}
    SERVICES_TO_CHECK: ${PROJECT_PARENT_NAME}_${CI_PROJECT_NAME}
    STACK: gateway
  environment:
    url: http://${PUBLIC_HOSTNAME}
+9 −1
Original line number Diff line number Diff line
@@ -5,5 +5,13 @@ services:
    deploy:
      placement:
        constraints:
          - node.hostname == ${PLACEMENT_CONSTRAINTS_NODE_HOSTNAME:-hostname}
          - node.labels.${PLACEMENT_CONSTRAINTS_NODE_LABELS_NAME:-gateway} == ${PLACEMENT_CONSTRAINTS_NODE_LABELS_VALUE:-true}

volumes:
  acme-vol:
    name: ${ACME_VOL_NAME:-acme-vol}
    driver: local
    driver_opts:
      type: ${ACME_VOL_TYPE:-nfs4}
      o: addr=${ACME_VOL_ADDR:-127.0.0.1},${ACME_VOL_OPTIONS:-rw,nolock,noatime,tcp,rsize=8192,wsize=8192,timeo=14}
      device: ${ACME_VOL_DEVICE:-:/acme-vol/}
+4 −0
Original line number Diff line number Diff line
@@ -6,3 +6,7 @@ services:
      placement:
        constraints:
          - engine.labels.availability_zone == ${AWS_REGION}a

volumes:
  acme-vol:
    name: ${ACME_VOL_NAME:-acme-vol}
+1 −5
Original line number Diff line number Diff line
@@ -36,7 +36,7 @@ services:
          memory: ${RESOURCES_LIMITS_MEMORY:-32M}
        reservations:
          cpus: '${RESOURCES_RESERVATIONS_CPUS:-0.001}'
          memory: ${RESOURCES_RESERVATIONS_MEMORY:-4M}
          memory: ${RESOURCES_RESERVATIONS_MEMORY:-6M}

networks:
  traefik-net:
@@ -44,10 +44,6 @@ networks:
    driver: ${TRAEFIK_NET_DRIVER:-overlay}
    external: true

volumes:
  acme-vol:
    name: ${ACME_VOL_NAME:-acme-vol}

configs:
  nginx-config:
    name: ${NGINX_CONFIG_NAME:-nginx-proxy-http-config}