swarm.yaml 500 字节
Newer Older
1 2 3 4 5
version: "3.2"
services:
  trainsys-app-mob:
    image: dstimage
    ports:
6
      - "50200:80"
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
    networks:
      - agent_network
    environment:
      - APP_ID=sztrainsys__mob
      - APPCODE=mob
    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