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

networks:
  agent_network:
    driver: overlay
    attachable: true