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