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

Añade restricción para desplegar en nodo principal

Esto es necesario en entorno de desarollo.
parent a95595e0
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
version: '3.5'

services:
  nginx-proxy-http:
    deploy:
      placement:
        constraints:
          - node.hostname == ${PLACEMENT_CONSTRAINTS_NODE_HOSTNAME:-hostname}
          - node.labels.${PLACEMENT_CONSTRAINTS_NODE_LABELS_NAME:-gateway} == ${PLACEMENT_CONSTRAINTS_NODE_LABELS_VALUE:-true}