version: '3.8' nx-deploy: &default-deploy replicas: 1 restart_policy: condition: on-failure

#max_attempts: 9 #placement: #constraints: [node.labels.type == master] #constraints:

- node.hostname == p1

services: adrs-ui: #image: master:5000/ly-mssp-auth-ui:latest #image: master:5000/dev/ly-mssp-auth-ui:2.2 #image: master:5000/dev/ly-mssp-auth-ui:2.2-20221101 #image: master:5000/yjbs.cn/ly-mssp-auth-ui:2.2.20220316 #image: master:5000/yjbs.cn/ly-mssp-auth-ui:20220613 #image: master:5000/dev/ly-mssp-auth-ui:2.2-20221227 #image: master:5000/dev/ly-mssp-auth-ui:2.220221228 image: registry.ly-sky.com:5000/dev/ly-bd-adrs-ui@sha256:5e8803e838e2f4ae8778fb4f03f5f49610eaef6912e0a215e93c6b6fc1538599 init: true ports: - "15111:80" depends_on: - api #volumes: # - "/data/share/common/nginx/auth/nginx.conf:/etc/nginx/nginx.conf" environment: spring.cloud.inetutils.preferred-networks: 10.10.0 APIGATEWAY: 192.168.35.55:1101 GATEWAY: 192.168.35.55:1101 #APIGATEWAY: 192.168.35.214:1103 #APIGATEWAY: 172.200.0.1:1101 Cas_Enable: "false" #DOCURL: "172.198.0.11:8888" DOCURL: "192.168.35.210:8888" networks: - portainer_agent_network deploy: placement: constraints: - node.hostname == p1

networks: portainer_agent_network: external: tru

StackFileContentversion 38nx-deployn &default-deployn replicas 1n restart_policyn condition on-failuren #max_attempts 9n #placementn #constraints nodelabelstype == master n #constraints n

原文地址: https://www.cveoy.top/t/topic/ijJE 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录