version: "3.2"
services:
  trainsys-app-oldwebapptest:
    image: dstimage
    ports:
      - "80:80"
    networks:
      - agent_network
    environment:
      - BASEURL=sztrainsys__oldwebapptest
      - APPCODE=oldwebapptest
      - APICODE=sztrainsys__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