version: "3.6" services: nginx: image: mathwave/sprint-repo:sprint-infra-nginx-prod networks: - common-infra-nginx - configurator environment: MINIO_SECRET_KEY: $MINIO_SECRET_KEY_PROD ports: - published: 80 target: 80 mode: host - published: 443 target: 443 mode: host deploy: mode: replicated replicas: 1 restart_policy: condition: any placement: constraints: [node.labels.stage == production] update_config: parallelism: 1 # order: start-first networks: common-infra-nginx: external: true configurator: external: true