trainsys-provider-trainsys.yaml 737 字节
Newer Older
1 2 3
version: "3.2"
services:
  trainsys-provider:
4
    image: registry.cn-shanghai.aliyuncs.com/ibizsys/trainsys-provider:latest
5
    ports:
6
      - "8081:8081"
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
    networks:
      - agent_network
    deploy:
      resources:
           limits:
               memory: 4048M
           reservations:
               memory: 400M    
      mode: replicated
      replicas: 1
      restart_policy:
        condition: on-failure
        max_attempts: 3
        window: 120s
    volumes:
      - "nfs:/app/file"

volumes:
  nfs:
    driver: local
    driver_opts:
      type: "nfs"
      o: "addr=172.16.240.140,rw"
      device: ":/data/nfs"

networks:
  agent_network:
    driver: overlay
    attachable: true