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