swarm.yaml 571 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
version: "3.2"
services:
  trainsys-app-oldwebapptest:
    image: dstimage
    ports:
      - "80:80"
    networks:
      - agent_network
    environment:
      - BASEURL=trainsys__oldwebapptest
      - APPCODE=oldwebapptest
      - APICODE=trainsys__oldwebapptest
    deploy:
      resources:
           limits:
               memory: 800M
           reservations:
               memory: 400M    
      mode: replicated
      replicas: 1
    extra_hosts:
      - "gateway.ibizcloud.cn:172.16.240.140" 

networks:
  agent_network:
    driver: overlay
    attachable: true